X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TdRaubRl86SSxhvrM5q7/HGTQF30Gu9tfjuBrpc8+EI=; b=An7CXcRXc40x7juLHMdQfpOvMsMmhSilAnV+zrvQUECMufqmrJsyLUKp78lF2RzSZi W9Zio64UdUgds7tBmq8MSoYwhUr8/THatb5/mM2pU+1X/Ru1E6ujqrKkiRgcxjKwN99W 7h50batlSaevIfNcO00kMumhV3dMVfbKlnIfesDRHvDzcQV32d79kskRQLvpeHfYEmeC iLvTwXGYWVGVXFrxhb8Iorp7JYkbj281SUZic8vRrXUVgmz1lnv3u7nnK5p9wnIBOhAK tstywoezh3aR3DA9ueZDenzrhWGIhm19iFmG3pcuwF+j3QJ0hheTsRw6r10Bo60zUyML 6PWA== X-Received: by 10.180.36.15 with SMTP id m15mr48289894wij.6.1411038510173; Thu, 18 Sep 2014 04:08:30 -0700 (PDT) From: Riccardo Lucchese To: geda-user AT delorie DOT com Cc: Riccardo Lucchese Subject: [geda-user] [PATCH 32/43] Remove deprecated use of gtk_memu_append() Date: Thu, 18 Sep 2014 13:06:27 +0200 Message-Id: <1411038398-10231-33-git-send-email-riccardo.lucchese@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1411038398-10231-1-git-send-email-riccardo.lucchese@gmail.com> References: <1411038398-10231-1-git-send-email-riccardo DOT lucchese AT gmail DOT com> Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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..818cd90 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(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(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(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 9f64953..d72c4eb 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(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(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(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(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(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