Replace deprecated gtk_menu_append()
authorHugo Villeneuve <hugo@hugovil.com>
Wed, 11 Sep 2013 02:24:54 +0000 (22:24 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Tue, 1 Oct 2013 01:19:45 +0000 (21:19 -0400)
src/emugtk.c
src/filemenu.c
src/helpmenu.c
src/viewmenu.c

index 982a236..3a111cb 100644 (file)
@@ -332,7 +332,7 @@ AddMenuSeparator(GtkWidget *menu)
        GtkWidget *item;
 
        item = gtk_menu_item_new();
        GtkWidget *item;
 
        item = gtk_menu_item_new();
-       gtk_menu_append(GTK_MENU(menu), item);
+       gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
 }
 
 void
 }
 
 void
index 1f3df9f..ce13368 100644 (file)
@@ -131,7 +131,7 @@ FileAddMenu(GtkWidget *menu_bar)
 
        /* Create the 'open' item. */
        item = gtk_menu_item_new_with_label(FILENAME_DESCRIPTION);
 
        /* 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);
        /* 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");
        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),
        /* We can attach the Quit menu item to our exit function */
        gtk_signal_connect_object(GTK_OBJECT(item), "activate",
                                  GTK_SIGNAL_FUNC(FileQuitEvent),
index bd3d4ec..bb9f9d5 100644 (file)
@@ -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");
 
        /* 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),
        /* 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);
 
        /* 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),
        /* Attach the callback functions to the activate signal. */
        gtk_signal_connect_object(GTK_OBJECT(item), "activate",
                                  GTK_SIGNAL_FUNC(HelpAboutEvent),
index 6d2eca4..4ac24c2 100644 (file)
@@ -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");
 
        /* 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),
        /* 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");
 
        /* 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),
        /* Attach the callback functions to the activate signal. */
        gtk_signal_connect_object(GTK_OBJECT(item), "activate",
                                  GTK_SIGNAL_FUNC(ViewMenuInternalDump),