Mail Archives: geda-user/2014/10/14/16:18:21.1
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 58c921a..76f14fb 100644
--- a/gschem/src/x_window.c
+++ b/gschem/src/x_window.c
@@ -266,7 +266,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 -