delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2014/10/14/16:18:58

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=VuSo4Fj301/sFIZ7bNIjyRpr+ZXpUF4o+cZoJBQlela8wrn1I8mJPIylIZwX9/PD9g
sjeev4UtRTJLdWIRh2bfUy3Zs4kAbP3tBVWXt+CmnpBXDScnSFvsAfrKYkAzb1GwIsWb
n2itQ45WDr/s6cug/TgHDbXHjaC8ZCTqPCj7uR/e57Oy/yPlke0IiOWZHJv0wFqxg/gL
woBDAlkW7V9ADRG9Fn1TkMri5VthMxUDcrAqHDYs9Wm0IKd/mYRZ51pUe8DlCcuANwEA
8kt6U02qI0K3BPYiNGPS9BvtSXbbx/HZFmg3Dx5NR02hzExBGZt6AMcRJP1QntCdhrj0
V/tw==
X-Received: by 10.194.185.115 with SMTP id fb19mr4680002wjc.121.1413317928937;
Tue, 14 Oct 2014 13:18:48 -0700 (PDT)
From: Riccardo Lucchese <riccardo DOT lucchese AT gmail DOT com>
To: geda-user AT delorie DOT com
Cc: paubert AT iram DOT es, Riccardo Lucchese <riccardo DOT lucchese AT gmail DOT com>
Subject: [geda-user] [PATCH V2 26/43] Remove deprecated use of gtk_object_set_data_full()
Date: Tue, 14 Oct 2014 22:17:18 +0200
Message-Id: <1413317855-10673-27-git-send-email-riccardo.lucchese@gmail.com>
X-Mailer: git-send-email 2.1.0
In-Reply-To: <1413317855-10673-1-git-send-email-riccardo.lucchese@gmail.com>
References: <1413317855-10673-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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019