[gtksourceview] Do not use gtk_image_menu_item_new_from_stock() (deprecated)



commit 8eb271f6fbd79dd5a2d2c31a0ae1f6015a99410a
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Jul 8 15:58:12 2013 +0200

    Do not use gtk_image_menu_item_new_from_stock() (deprecated)
    
    GtkTextView uses now gtk_menu_item_new_with_mnemonic().

 gtksourceview/gtksourceview.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index 60ef07b..35ef01b 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -1326,7 +1326,7 @@ gtk_source_view_populate_popup (GtkTextView *text_view,
        gtk_widget_show (menu_item);
 
        /* create redo menu_item. */
-       menu_item = gtk_image_menu_item_new_from_stock ("gtk-redo", NULL);
+       menu_item = gtk_menu_item_new_with_mnemonic (_("_Redo"));
        g_object_set_data (G_OBJECT (menu_item), "gtk-signal", "redo");
        g_signal_connect (G_OBJECT (menu_item), "activate",
                          G_CALLBACK (menu_item_activate_cb), text_view);
@@ -1337,7 +1337,7 @@ gtk_source_view_populate_popup (GtkTextView *text_view,
        gtk_widget_show (menu_item);
 
        /* create undo menu_item. */
-       menu_item = gtk_image_menu_item_new_from_stock ("gtk-undo", NULL);
+       menu_item = gtk_menu_item_new_with_mnemonic (_("_Undo"));
        g_object_set_data (G_OBJECT (menu_item), "gtk-signal", "undo");
        g_signal_connect (G_OBJECT (menu_item), "activate",
                          G_CALLBACK (menu_item_activate_cb), text_view);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]