Mail Archives: geda-user/2014/10/14/16:19:12
Verbatim from Gtk+ 2 Reference Manual: "gtk_menu_append is deprecated
and should not be used in newly-written code. Use
gtk_menu_shell_append() instead."
---
gschem/src/x_attribedit.c | 6 +++---
gschem/src/x_menus.c | 10 +++++-----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/gschem/src/x_attribedit.c b/gschem/src/x_attribedit.c
index 641f939..bc23693 100644
--- a/gschem/src/x_attribedit.c
+++ b/gschem/src/x_attribedit.c
@@ -423,11 +423,11 @@ void attrib_edit_dialog (GschemToplevel *w_current, OBJECT *attr_obj, int flag)
(GtkAttachOptions) (0), 0, 0);
show_options_menu = gtk_menu_new ();
glade_menuitem = gtk_menu_item_new_with_label (_("Show Value Only"));
- gtk_menu_append (GTK_MENU (show_options_menu), glade_menuitem);
+ gtk_menu_shell_append(GTK_MENU_SHELL(show_options_menu), glade_menuitem);
glade_menuitem = gtk_menu_item_new_with_label (_("Show Name Only"));
- gtk_menu_append (GTK_MENU (show_options_menu), glade_menuitem);
+ gtk_menu_shell_append(GTK_MENU_SHELL(show_options_menu), glade_menuitem);
glade_menuitem = gtk_menu_item_new_with_label (_("Show Name & Value"));
- gtk_menu_append (GTK_MENU (show_options_menu), glade_menuitem);
+ gtk_menu_shell_append(GTK_MENU_SHELL(show_options_menu), glade_menuitem);
gtk_option_menu_set_menu (GTK_OPTION_MENU (show_options), show_options_menu);
gtk_option_menu_set_history (GTK_OPTION_MENU (show_options), 0);
diff --git a/gschem/src/x_menus.c b/gschem/src/x_menus.c
index 268b888..96be8ea 100644
--- a/gschem/src/x_menus.c
+++ b/gschem/src/x_menus.c
@@ -122,7 +122,7 @@ get_main_menu(GschemToplevel *w_current)
menu = gtk_menu_new();
menu_item = gtk_tearoff_menu_item_new ();
- gtk_menu_append(GTK_MENU(menu), menu_item);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
gtk_widget_show(menu_item);
scm_items_len = (int) scm_ilength (scm_items);
@@ -150,7 +150,7 @@ get_main_menu(GschemToplevel *w_current)
if (strcmp(menu_item_name, "SEPARATOR") == 0) {
menu_item = gtk_menu_item_new();
- gtk_menu_append(GTK_MENU(menu), menu_item);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
} else {
if(scm_is_false (scm_item_func)) {
@@ -207,7 +207,7 @@ get_main_menu(GschemToplevel *w_current)
w_current);
}
- gtk_menu_append (GTK_MENU (menu), menu_item);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
}
gtk_widget_show (menu_item);
@@ -255,7 +255,7 @@ get_main_popup (GschemToplevel *w_current)
if (e.action == NULL) {
menu_item = gtk_menu_item_new();
gtk_widget_show (menu_item);
- gtk_menu_append (GTK_MENU (menu), menu_item);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
continue;
}
@@ -278,7 +278,7 @@ get_main_popup (GschemToplevel *w_current)
G_CALLBACK (g_menu_execute), w_current);
menu_item = gtk_action_create_menu_item (GTK_ACTION (action));
- gtk_menu_append (GTK_MENU (menu), menu_item);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
/* Add a handle to the menu object to get access to widget
objects. Horrible horrible hack, but it's the same approach as
--
2.1.0
- Raw text -