diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-11-12 20:20:29 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-11-12 20:20:29 +0000 |
commit | 74a5fd15d7606b592cf7c77c23ded99ff2b7ec6f (patch) | |
tree | f52a55faa1b90f9fdc5a8cb95e02ac3a68dbd1c1 /gtk/gtklabel.c | |
parent | 3b9a31df075d4a53aaf1d592adc81a0dfc8996f7 (diff) | |
download | gdk-pixbuf-74a5fd15d7606b592cf7c77c23ded99ff2b7ec6f.tar.gz |
Adjust to the current entry popup menu.
2004-11-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklabel.c (gtk_label_do_popup): Adjust to the current
entry popup menu.
Diffstat (limited to 'gtk/gtklabel.c')
-rw-r--r-- | gtk/gtklabel.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 5dd6e751d..769275f4f 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -3578,9 +3578,8 @@ gtk_label_do_popup (GtkLabel *label, append_action_signal (label, label->select_info->popup_menu, GTK_STOCK_PASTE, "paste_clipboard", FALSE); - menuitem = gtk_menu_item_new_with_label (_("Select All")); - g_signal_connect_swapped (menuitem, "activate", - G_CALLBACK (gtk_label_select_all), label); + menuitem = gtk_image_menu_item_new_from_stock (GTK_STOCK_DELETE, NULL); + gtk_widget_set_sensitive (menuitem, FALSE); gtk_widget_show (menuitem); gtk_menu_shell_append (GTK_MENU_SHELL (label->select_info->popup_menu), menuitem); @@ -3588,10 +3587,10 @@ gtk_label_do_popup (GtkLabel *label, gtk_widget_show (menuitem); gtk_menu_shell_append (GTK_MENU_SHELL (label->select_info->popup_menu), menuitem); - menuitem = gtk_menu_item_new_with_label (_("Input Methods")); + menuitem = gtk_menu_item_new_with_label (_("Select All")); + g_signal_connect_swapped (menuitem, "activate", + G_CALLBACK (gtk_label_select_all), label); gtk_widget_show (menuitem); - gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), gtk_menu_new ()); - gtk_widget_set_sensitive (menuitem, FALSE); gtk_menu_shell_append (GTK_MENU_SHELL (label->select_info->popup_menu), menuitem); g_signal_emit (label, |