Skip to content
Permalink
Browse files

editable-label: avoid deprecated 'gtk_im_multicontext_append_menuitems'

drop "Input Methods"
  • Loading branch information...
sc0w authored and lukefromdc committed May 15, 2018
1 parent 9bf65ee commit 9f08546cff6b4d88835b35b4e000ac7a18b6fb39
Showing with 1 addition and 15 deletions.
  1. +1 −15 eel/eel-editable-label.c
@@ -3051,7 +3051,7 @@ popup_targets_received (GtkClipboard *clipboard,
GtkSelectionData *data,
gpointer user_data)
{
GtkWidget *menuitem, *submenu;
GtkWidget *menuitem;
gboolean have_selection;
gboolean clipboard_contains_text;
PopupInfo *info;
@@ -3092,20 +3092,6 @@ popup_targets_received (GtkClipboard *clipboard,
gtk_widget_show (menuitem);
gtk_menu_shell_append (GTK_MENU_SHELL (label->popup_menu), menuitem);

menuitem = gtk_separator_menu_item_new ();
gtk_widget_show (menuitem);
gtk_menu_shell_append (GTK_MENU_SHELL (label->popup_menu), menuitem);

menuitem = eel_image_menu_item_new_from_icon (NULL, _("Input Methods"));
gtk_widget_show (menuitem);
submenu = gtk_menu_new ();
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), submenu);

gtk_menu_shell_append (GTK_MENU_SHELL (label->popup_menu), menuitem);

gtk_im_multicontext_append_menuitems (GTK_IM_MULTICONTEXT (label->im_context),
GTK_MENU_SHELL (submenu));

g_signal_emit (label,
signals[POPULATE_POPUP], 0,
label->popup_menu);

0 comments on commit 9f08546

Please sign in to comment.
You can’t perform that action at this time.