www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2014/09/18/07:07:39

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=FsPgPieGtsRUFHHaRSI0XuXwgkcg6T/W16hQX2Me5W8=;
b=SMvE7suTIFhfNYkdLU+MCvnJq2Ht6KFiAsOAeJZQSCkzjefY3cZ9Eio8eSfa3Wi7Ku
FMrDnBcIZDEtNOWr/ViN/i0zA1pfDEa3lpdD4/DXIf5WWDFB61PK1ZVJ5Zek+JjIF6PU
3S6tevRCQ1jMgzsijjIOJDZ0z0V+Y3ZtAif6l3cPwLUtQ/riKdU3jei+fV7NE/JKuCql
U2OgCjKAXBxyiM6uKGWxnx8kabuNu9xfBvRdE8HXTuO43E3Z9EY2jzbgmnMBkyED1Z7d
q0EXscmAV5KtwYkjQP0ueYIORksv5Jg1bQQDdDtJcPdhXyhLRUN70JFTJxkp1QJZAwi5
E+CQ==
X-Received: by 10.180.108.143 with SMTP id hk15mr8324504wib.27.1411038447343;
Thu, 18 Sep 2014 04:07:27 -0700 (PDT)
From: Riccardo Lucchese <riccardo DOT lucchese AT gmail DOT com>
To: geda-user AT delorie DOT com
Cc: Riccardo Lucchese <riccardo DOT lucchese AT gmail DOT com>
Subject: [geda-user] [PATCH 13/43] Remove deprecated use of gtk_container_border_width()
Date: Thu, 18 Sep 2014 13:06:08 +0200
Message-Id: <1411038398-10231-14-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

Verbatim from Gtk+ 2 Reference Manual: "gtk_container_border_width is
deprecated and should not be used in newly-written code. Use
gtk_container_set_border_width() instead."
---
 gschem/src/gschem_options_dialog.c |  3 +--
 gschem/src/x_autonumber.c          |  4 ++--
 gschem/src/x_dialog.c              | 33 +++++++++++++++++----------------
 gschem/src/x_window.c              |  2 +-
 4 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/gschem/src/gschem_options_dialog.c b/gschem/src/gschem_options_dialog.c
index ddd51a4..8c85358 100644
--- a/gschem/src/gschem_options_dialog.c
+++ b/gschem/src/gschem_options_dialog.c
@@ -425,8 +425,7 @@ instance_init (GschemOptionsDialog *dialog)
                     G_CALLBACK (notify_gschem_toplevel),
                     NULL);
 
-  gtk_container_border_width (GTK_CONTAINER (dialog),
-                              DIALOG_BORDER_SPACING);
+  gtk_container_set_border_width(GTK_CONTAINER(dialog), DIALOG_BORDER_SPACING);
 
   dialog->size_group = gtk_size_group_new (GTK_SIZE_GROUP_BOTH);
 
diff --git a/gschem/src/x_autonumber.c b/gschem/src/x_autonumber.c
index ee495e1..7a94cc1 100644
--- a/gschem/src/x_autonumber.c
+++ b/gschem/src/x_autonumber.c
@@ -1217,8 +1217,8 @@ GtkWidget* autonumber_create_dialog(GschemToplevel *w_current)
 
   gtk_window_set_position(GTK_WINDOW(autonumber_text), GTK_WIN_POS_MOUSE);
   
-  gtk_container_border_width(GTK_CONTAINER(autonumber_text), 
-			     DIALOG_BORDER_SPACING);
+  gtk_container_set_border_width(GTK_CONTAINER(autonumber_text),
+                                 DIALOG_BORDER_SPACING);
   vbox1 = GTK_DIALOG(autonumber_text)->vbox;
   gtk_box_set_spacing(GTK_BOX(vbox1), DIALOG_V_SPACING);
 
diff --git a/gschem/src/x_dialog.c b/gschem/src/x_dialog.c
index 1f94835..c1b360b 100644
--- a/gschem/src/x_dialog.c
+++ b/gschem/src/x_dialog.c
@@ -142,7 +142,8 @@ void arc_angle_dialog (GschemToplevel *w_current, OBJECT *arc_object)
     gtk_dialog_set_default_response(GTK_DIALOG(w_current->aawindow),
                                     GTK_RESPONSE_ACCEPT);
 
-    gtk_container_border_width(GTK_CONTAINER(w_current->aawindow), DIALOG_BORDER_SPACING);
+    gtk_container_set_border_width(GTK_CONTAINER(w_current->aawindow),
+                                   DIALOG_BORDER_SPACING);
     vbox = GTK_DIALOG(w_current->aawindow)->vbox;
     gtk_box_set_spacing(GTK_BOX(vbox), DIALOG_V_SPACING);
 
@@ -286,8 +287,8 @@ void translate_dialog (GschemToplevel *w_current)
     gtk_dialog_set_default_response(GTK_DIALOG(w_current->trwindow),
                                     GTK_RESPONSE_ACCEPT);
 
-    gtk_container_border_width(GTK_CONTAINER(w_current->trwindow),
-                               DIALOG_BORDER_SPACING);
+    gtk_container_set_border_width(GTK_CONTAINER(w_current->trwindow),
+                                   DIALOG_BORDER_SPACING);
     vbox = GTK_DIALOG(w_current->trwindow)->vbox;
     gtk_box_set_spacing(GTK_BOX(vbox), DIALOG_V_SPACING);
 
@@ -390,8 +391,8 @@ void slot_edit_dialog (GschemToplevel *w_current, const char *string)
                       G_CALLBACK (slot_edit_dialog_response),
                       w_current);
 
-    gtk_container_border_width(GTK_CONTAINER(w_current->sewindow),
-                               DIALOG_BORDER_SPACING);
+    gtk_container_set_border_width(GTK_CONTAINER(w_current->sewindow),
+                                   DIALOG_BORDER_SPACING);
     vbox = GTK_DIALOG(w_current->sewindow)->vbox;
     gtk_box_set_spacing(GTK_BOX(vbox), DIALOG_V_SPACING);
 
@@ -534,8 +535,8 @@ void coord_dialog (GschemToplevel *w_current, int x, int y)
                       G_CALLBACK (coord_dialog_response),
                       w_current);
 
-    gtk_container_border_width (GTK_CONTAINER(w_current->cowindow),
-                                DIALOG_BORDER_SPACING);
+    gtk_container_set_border_width(GTK_CONTAINER(w_current->cowindow),
+                                   DIALOG_BORDER_SPACING);
     vbox = GTK_DIALOG(w_current->cowindow)->vbox;
     gtk_box_set_spacing(GTK_BOX(vbox), DIALOG_V_SPACING);
 
@@ -679,8 +680,8 @@ void x_dialog_hotkeys (GschemToplevel *w_current)
     gtk_dialog_set_default_response(GTK_DIALOG(w_current->hkwindow),
                                     GTK_RESPONSE_ACCEPT);
 
-    gtk_container_border_width (GTK_CONTAINER (w_current->hkwindow),
-                                DIALOG_BORDER_SPACING);
+    gtk_container_set_border_width(GTK_CONTAINER(w_current->hkwindow),
+                                   DIALOG_BORDER_SPACING);
     gtk_widget_set_usize(w_current->hkwindow, 300,300);
 
     vbox = GTK_DIALOG(w_current->hkwindow)->vbox;
@@ -1020,8 +1021,8 @@ void find_text_dialog(GschemToplevel *w_current)
     gtk_dialog_set_default_response(GTK_DIALOG(w_current->tfindwindow),
                                      GTK_RESPONSE_ACCEPT);
 
-    gtk_container_border_width(GTK_CONTAINER(w_current->tfindwindow),
-                               DIALOG_BORDER_SPACING);
+    gtk_container_set_border_width(GTK_CONTAINER(w_current->tfindwindow),
+                                   DIALOG_BORDER_SPACING);
     vbox = GTK_DIALOG(w_current->tfindwindow)->vbox;
     gtk_box_set_spacing(GTK_BOX(vbox), DIALOG_V_SPACING);
 
@@ -1128,8 +1129,8 @@ void hide_text_dialog(GschemToplevel * w_current)
     gtk_dialog_set_default_response(GTK_DIALOG(w_current->thidewindow),
                                     GTK_RESPONSE_ACCEPT);
 
-    gtk_container_border_width(GTK_CONTAINER(w_current->thidewindow),
-                               DIALOG_BORDER_SPACING);
+    gtk_container_set_border_width(GTK_CONTAINER(w_current->thidewindow),
+                                   DIALOG_BORDER_SPACING);
     vbox = GTK_DIALOG(w_current->thidewindow)->vbox;
     gtk_box_set_spacing(GTK_BOX(vbox), DIALOG_V_SPACING);
 
@@ -1230,8 +1231,8 @@ void show_text_dialog(GschemToplevel * w_current)
     gtk_dialog_set_default_response(GTK_DIALOG(w_current->tshowwindow),
                                     GTK_RESPONSE_ACCEPT);
 
-    gtk_container_border_width(GTK_CONTAINER(w_current->tshowwindow),
-                               DIALOG_BORDER_SPACING);
+    gtk_container_set_border_width(GTK_CONTAINER(w_current->tshowwindow),
+                                   DIALOG_BORDER_SPACING);
     vbox = GTK_DIALOG(w_current->tshowwindow)->vbox;
     gtk_box_set_spacing(GTK_BOX(vbox), DIALOG_V_SPACING);
 
@@ -2330,7 +2331,7 @@ void x_dialog_edit_pin_type (GschemToplevel *w_current, const GList *obj_list)
 
   gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL);
 
-  gtk_container_border_width (GTK_CONTAINER (dialog), DIALOG_BORDER_SPACING);
+  gtk_container_set_border_width(GTK_CONTAINER(dialog), DIALOG_BORDER_SPACING);
   vbox = GTK_DIALOG (dialog)->vbox;
   gtk_box_set_spacing (GTK_BOX(vbox), DIALOG_V_SPACING);
 
diff --git a/gschem/src/x_window.c b/gschem/src/x_window.c
index 4d56381..18da46e 100644
--- a/gschem/src/x_window.c
+++ b/gschem/src/x_window.c
@@ -275,7 +275,7 @@ void x_window_create_main(GschemToplevel *w_current)
 
   /* Containers first */
   main_box = gtk_vbox_new(FALSE, 1);
-  gtk_container_border_width(GTK_CONTAINER(main_box), 0);
+  gtk_container_set_border_width(GTK_CONTAINER(main_box), 0);
   gtk_container_add(GTK_CONTAINER(w_current->main_window), main_box);
 
   menubar = get_main_menu (w_current);
-- 
2.1.0

- Raw text -


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