GtkWidget *item;
item = gtk_menu_item_new();
- gtk_menu_append(GTK_MENU(menu), item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
}
void
/* 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);
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),
/* 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),
/* 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),
/* 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),
/* 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),