From: Hugo Villeneuve Date: Wed, 11 Sep 2013 02:24:54 +0000 (-0400) Subject: Replace deprecated gtk_menu_append() X-Git-Tag: v2.0.0~167 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=43cc485237ad6fab2ca1506ff3d3f4b1dfb904d5;p=emu8051.git Replace deprecated gtk_menu_append() --- diff --git a/src/emugtk.c b/src/emugtk.c index 982a236..3a111cb 100644 --- a/src/emugtk.c +++ b/src/emugtk.c @@ -332,7 +332,7 @@ AddMenuSeparator(GtkWidget *menu) GtkWidget *item; item = gtk_menu_item_new(); - gtk_menu_append(GTK_MENU(menu), item); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); } void diff --git a/src/filemenu.c b/src/filemenu.c index 1f3df9f..ce13368 100644 --- a/src/filemenu.c +++ b/src/filemenu.c @@ -131,7 +131,7 @@ FileAddMenu(GtkWidget *menu_bar) /* Create the 'open' item. */ item = gtk_menu_item_new_with_label(FILENAME_DESCRIPTION); - gtk_menu_append(GTK_MENU(menu), item); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); /* Attach the callback functions to the activate signal. */ gtk_signal_connect_object(GTK_OBJECT(item), "activate", GTK_SIGNAL_FUNC(FileOpenEvent), NULL); @@ -139,7 +139,7 @@ FileAddMenu(GtkWidget *menu_bar) AddMenuSeparator(menu); item = gtk_menu_item_new_with_label("Exit"); - gtk_menu_append(GTK_MENU(menu), item); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); /* We can attach the Quit menu item to our exit function */ gtk_signal_connect_object(GTK_OBJECT(item), "activate", GTK_SIGNAL_FUNC(FileQuitEvent), diff --git a/src/helpmenu.c b/src/helpmenu.c index bd3d4ec..bb9f9d5 100644 --- a/src/helpmenu.c +++ b/src/helpmenu.c @@ -61,7 +61,7 @@ HelpAddMenu(GtkWidget *menu_bar) /* Create the 'Help Command Line Options' item. */ item = gtk_menu_item_new_with_label("Command Line Options"); - gtk_menu_append(GTK_MENU(menu), item); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); /* Attach the callback functions to the activate signal. */ gtk_signal_connect_object(GTK_OBJECT(item), "activate", GTK_SIGNAL_FUNC(HelpCommandsEvent), @@ -71,7 +71,7 @@ HelpAddMenu(GtkWidget *menu_bar) /* Create the 'Help About' item. */ item = gtk_menu_item_new_with_label("About " PACKAGE); - gtk_menu_append(GTK_MENU(menu), item); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); /* Attach the callback functions to the activate signal. */ gtk_signal_connect_object(GTK_OBJECT(item), "activate", GTK_SIGNAL_FUNC(HelpAboutEvent), diff --git a/src/viewmenu.c b/src/viewmenu.c index 6d2eca4..4ac24c2 100644 --- a/src/viewmenu.c +++ b/src/viewmenu.c @@ -54,7 +54,7 @@ ViewAddMenu(GtkWidget *menu_bar) /* Create the 'Viewmenu External Memory Dump' item. */ item = gtk_menu_item_new_with_label("External Memory Dump"); - gtk_menu_append(GTK_MENU(menu), item); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); /* Attach the callback functions to the activate signal. */ gtk_signal_connect_object(GTK_OBJECT(item), "activate", GTK_SIGNAL_FUNC(ViewMenuExternalDump), @@ -64,7 +64,7 @@ ViewAddMenu(GtkWidget *menu_bar) /* Create the 'Viewmenu Internal Memory Dump' item. */ item = gtk_menu_item_new_with_label("Internal Memory Dump"); - gtk_menu_append(GTK_MENU(menu), item); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); /* Attach the callback functions to the activate signal. */ gtk_signal_connect_object(GTK_OBJECT(item), "activate", GTK_SIGNAL_FUNC(ViewMenuInternalDump),