Skip to content


Browse files Browse the repository at this point in the history
editable-label: avoid deprecated 'gtk_im_multicontext_append_menuitems'
drop "Input Methods"
  • Loading branch information
sc0w authored and lukefromdc committed May 16, 2018
1 parent 9bf65ee commit 9f08546
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions eel/eel-editable-label.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9f08546

Please sign in to comment.