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=+iTzadvHrXXT8WKto0guDbr9oap7FTMx3TOZrXPTUmU=; b=uZH4vmtBH6W+6s7JzptrKR25lroTwTJQeNW4dGiynZ+RLBu0Zon0q+y/iWkj8P9Ls7 +0cC9ERFQ7n3zeWwPZwahpWrfbKYJ6fcoBBBi7fYjWXZDNk8aA+EgtHzoqv2Aay+f/b8 rn3uw3vmHveG2YSZ3Y2GW1fiHbIZSmTyqW3ykbQ6JXThYxdB4WQ6uLyTNB1WhMRTO0lK 6N2NKURGzpI4nKqroNWzMZUELXPKJNoDZOzRjNl4BqjWrHUPbGPwuqmNC2I/+ajeT4Cq EGfRHR5uwqRfjwLBObzer0JnNqAQlfLVmBEG5p3Zx9BKRV4PitLZPTKDKAG8W17N31z+ iwWw== X-Received: by 10.180.10.230 with SMTP id l6mr11867342wib.62.1411038490437; Thu, 18 Sep 2014 04:08:10 -0700 (PDT) From: Riccardo Lucchese To: geda-user AT delorie DOT com Cc: Riccardo Lucchese Subject: [geda-user] [PATCH 26/43] Remove deprecated use of gtk_object_set_data_full() Date: Thu, 18 Sep 2014 13:06:21 +0200 Message-Id: <1411038398-10231-27-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_object_set_data_full is deprecated and should not be used in newly-written code. Use g_object_set_data_full() instead." --- gschem/src/x_attribedit.c | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/gschem/src/x_attribedit.c b/gschem/src/x_attribedit.c index ee0ad97..641f939 100644 --- a/gschem/src/x_attribedit.c +++ b/gschem/src/x_attribedit.c @@ -395,8 +395,8 @@ void attrib_edit_dialog (GschemToplevel *w_current, OBJECT *attr_obj, int flag) value_entry = gtk_entry_new (); gtk_widget_ref (value_entry); - gtk_object_set_data_full (GTK_OBJECT (aewindow), "value_entry", value_entry, - (GtkDestroyNotify) gtk_widget_unref); + g_object_set_data_full(G_OBJECT(aewindow), "value_entry", value_entry, + (GtkDestroyNotify)gtk_widget_unref); gtk_table_attach (GTK_TABLE (table), value_entry, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); @@ -405,8 +405,8 @@ void attrib_edit_dialog (GschemToplevel *w_current, OBJECT *attr_obj, int flag) /* Visibility */ visbutton = gtk_check_button_new_with_label (_("Visible")); gtk_widget_ref (visbutton); - gtk_object_set_data_full (GTK_OBJECT (aewindow), "visbutton", visbutton, - (GtkDestroyNotify) gtk_widget_unref); + g_object_set_data_full(G_OBJECT(aewindow), "visbutton", visbutton, + (GtkDestroyNotify)gtk_widget_unref); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (visbutton), TRUE); gtk_table_attach (GTK_TABLE (table), visbutton, 0, 1, 2, 3, @@ -415,9 +415,8 @@ void attrib_edit_dialog (GschemToplevel *w_current, OBJECT *attr_obj, int flag) show_options = gtk_option_menu_new (); gtk_widget_ref (show_options); - gtk_object_set_data_full (GTK_OBJECT (aewindow), "show_options", - show_options, - (GtkDestroyNotify) gtk_widget_unref); + g_object_set_data_full(G_OBJECT(aewindow), "show_options", show_options, + (GtkDestroyNotify)gtk_widget_unref); gtk_widget_show (show_options); gtk_table_attach (GTK_TABLE (table), show_options, 1, 2, 2, 3, (GtkAttachOptions) (GTK_FILL | GTK_EXPAND), @@ -452,32 +451,35 @@ void attrib_edit_dialog (GschemToplevel *w_current, OBJECT *attr_obj, int flag) addtoallbutton = gtk_radio_button_new_with_label (hbox2_group, _("All")); hbox2_group = gtk_radio_button_get_group(GTK_RADIO_BUTTON(addtoallbutton)); gtk_widget_ref (addtoallbutton); - gtk_object_set_data_full (GTK_OBJECT (aewindow), "addtoallbutton", addtoallbutton, - (GtkDestroyNotify) gtk_widget_unref); + g_object_set_data_full(G_OBJECT(aewindow), "addtoallbutton", + addtoallbutton, (GtkDestroyNotify)gtk_widget_unref); gtk_table_attach(GTK_TABLE(table), addtoallbutton, 0, 1, 0, 1, (GtkAttachOptions) (GTK_FILL), 0, 0, 0); addtocompsbutton = gtk_radio_button_new_with_label (hbox2_group, _("Components")); hbox2_group = gtk_radio_button_get_group(GTK_RADIO_BUTTON(addtocompsbutton)); gtk_widget_ref (addtocompsbutton); - gtk_object_set_data_full (GTK_OBJECT (aewindow), "addtocompsbutton", addtocompsbutton, - (GtkDestroyNotify) gtk_widget_unref); + g_object_set_data_full(G_OBJECT(aewindow), "addtocompsbutton", + addtocompsbutton, + (GtkDestroyNotify)gtk_widget_unref); gtk_table_attach(GTK_TABLE(table), addtocompsbutton, 1, 2, 0, 1, (GtkAttachOptions) (GTK_FILL), 0, 0, 0); addtonetsbutton = gtk_radio_button_new_with_label (hbox2_group, _("Nets")); hbox2_group = gtk_radio_button_get_group(GTK_RADIO_BUTTON(addtonetsbutton)); gtk_widget_ref (addtonetsbutton); - gtk_object_set_data_full (GTK_OBJECT (aewindow), "addtonetsbutton", addtonetsbutton, - (GtkDestroyNotify) gtk_widget_unref); + g_object_set_data_full(G_OBJECT(aewindow), "addtonetsbutton", + addtonetsbutton, + (GtkDestroyNotify)gtk_widget_unref); gtk_table_attach(GTK_TABLE(table), addtonetsbutton, 2, 3, 0, 1, (GtkAttachOptions) (GTK_FILL), 0, 0, 0); overwritebutton = gtk_check_button_new_with_label (_("Replace existing attributes")); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(overwritebutton), TRUE); gtk_widget_ref (overwritebutton); - gtk_object_set_data_full (GTK_OBJECT (aewindow), "overwritebutton", overwritebutton, - (GtkDestroyNotify) gtk_widget_unref); + g_object_set_data_full(G_OBJECT(aewindow), "overwritebutton", + overwritebutton, + (GtkDestroyNotify)gtk_widget_unref); gtk_table_attach(GTK_TABLE(table), overwritebutton, 0, 3, 1, 2, (GtkAttachOptions) (GTK_FILL), 0, 0, 0); } -- 2.1.0