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=+nFu/NH++cZtsVZmqj3pJfMO2cjHaZ6iP2Dfh7QYrI0=; b=JUCcN3UNdLDCAX/+bIXMt/OxA7e9Xgt4BA7KtYtSNq/5PLgM6Tyu5NAtlqFaywYpMD MhhjfUlW6FsMy+g7nvhnj2aYv54f+vRjlhVj1EeMDY7FXaF9MFXxy57mCd+7FPamjEOh UdcOlBmVojMV7V8lakevQqpZSY4v9BIy9GnNVycbpmgmCxU++d43Cv+Hb34paRziAxWr kL/PgMlRuQo1E8RhMmwZ3w8ceCNu8fcktT1EtAWB1gtpRoN8Inil1bEY6CNSbk0B+v8x Akck2stO9LoFh1Dgn9nkLWCsYgwJS8tDvggEMquGGkhdsYnQaEJe9R/wySNzQhLrnwEg V3Jw== X-Received: by 10.194.192.161 with SMTP id hh1mr7794750wjc.72.1413317890819; Tue, 14 Oct 2014 13:18:10 -0700 (PDT) From: Riccardo Lucchese To: geda-user AT delorie DOT com Cc: paubert AT iram DOT es, Riccardo Lucchese Subject: [geda-user] [PATCH V2 13/43] Remove deprecated use of gtk_container_border_width() Date: Tue, 14 Oct 2014 22:17:05 +0200 Message-Id: <1413317855-10673-14-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 Precedence: bulk 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