[gtkglarea] examples/viewlw.c: Use gtk_menu_shell_append() instead deprecated gtk_menu_append()



commit 3a51fe9feae187e298f0d9b03adbfe1609316651
Author: Javier Jardón <javier jardon codethink co uk>
Date:   Thu Mar 20 13:58:52 2014 +0000

    examples/viewlw.c: Use gtk_menu_shell_append() instead deprecated gtk_menu_append()

 examples/viewlw.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/examples/viewlw.c b/examples/viewlw.c
index addebe0..1b0d441 100644
--- a/examples/viewlw.c
+++ b/examples/viewlw.c
@@ -246,9 +246,9 @@ void create_popup_menu(GtkWidget *widget)
   GtkWidget *quit_item     = gtk_menu_item_new_with_label("Quit");
   GtkWidget *quit_all_item = gtk_menu_item_new_with_label("Quit All");
 
-  gtk_menu_append(GTK_MENU(menu), open_item);
-  gtk_menu_append(GTK_MENU(menu), quit_item);
-  gtk_menu_append(GTK_MENU(menu), quit_all_item);
+  gtk_menu_shell_append (GTK_MENU_SHELL(menu), open_item);
+  gtk_menu_shell_append (GTK_MENU_SHELL(menu), quit_item);
+  gtk_menu_shell_append (GTK_MENU_SHELL(menu), quit_all_item);
 
   gtk_widget_show(open_item);
   gtk_widget_show(quit_item);


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