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=irbtN6dmAm5/+yF4ClNWsmWB24ct4UPAngj4iQiChJ4=; b=W3fsRF8OcHQ28rRHcX728kLUSqyAtYp+MlVkyevHb+HsD8dg3rtpI6N9NfpKaluE5S prkzK4lnX4djE8+D4RzfPx1gfv7OhTnLJi8+WmUyvl/+yCFL7Q4aWiQZePcWnVU73ENS ISx6yAOAxJNziBoHJ25fGVwmodmo3qSNwNluFayIpSx9KNBDd2HqOvaGkFsYPLPuLkO5 2rNo2iND45c1umgMklvrdcmcQEgc8nrX57hhH3PlRrPHxqhVxcEHZBlwadW3nkVpuTLg MNnXOgj5mjBcXpRmBT/HNKL7QFaNatL+WFExPXPuUTB+GiyQT33GB5y4QQ+OQeASDR1o biig== X-Received: by 10.180.37.229 with SMTP id b5mr7458221wik.61.1413317875476; Tue, 14 Oct 2014 13:17:55 -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 05/43] Remove deprecated use of gtk_window_position() Date: Tue, 14 Oct 2014 22:16:57 +0200 Message-Id: <1413317855-10673-6-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_window_position is deprecated and should not be used in newly-written code. Use gtk_window_set_position() instead." --- gschem/src/x_autonumber.c | 3 +-- gschem/src/x_dialog.c | 32 +++++++++++++++----------------- gschem/src/x_image.c | 3 +-- gschem/src/x_newtext.c | 3 +-- 4 files changed, 18 insertions(+), 23 deletions(-) diff --git a/gschem/src/x_autonumber.c b/gschem/src/x_autonumber.c index 63f58f1..ee495e1 100644 --- a/gschem/src/x_autonumber.c +++ b/gschem/src/x_autonumber.c @@ -1215,8 +1215,7 @@ GtkWidget* autonumber_create_dialog(GschemToplevel *w_current) GTK_RESPONSE_REJECT, -1); - gtk_window_position (GTK_WINDOW (autonumber_text), - GTK_WIN_POS_MOUSE); + gtk_window_set_position(GTK_WINDOW(autonumber_text), GTK_WIN_POS_MOUSE); gtk_container_border_width(GTK_CONTAINER(autonumber_text), DIALOG_BORDER_SPACING); diff --git a/gschem/src/x_dialog.c b/gschem/src/x_dialog.c index 146aea5..a22f703 100644 --- a/gschem/src/x_dialog.c +++ b/gschem/src/x_dialog.c @@ -132,8 +132,8 @@ void arc_angle_dialog (GschemToplevel *w_current, OBJECT *arc_object) GTK_RESPONSE_REJECT, -1); - gtk_window_position(GTK_WINDOW(w_current->aawindow), - GTK_WIN_POS_MOUSE); + gtk_window_set_position(GTK_WINDOW(w_current->aawindow), + GTK_WIN_POS_MOUSE); g_signal_connect (G_OBJECT (w_current->aawindow), "response", G_CALLBACK (arc_angle_dialog_response), @@ -276,8 +276,8 @@ void translate_dialog (GschemToplevel *w_current) GTK_RESPONSE_REJECT, -1); - gtk_window_position(GTK_WINDOW (w_current->trwindow), - GTK_WIN_POS_MOUSE); + gtk_window_set_position(GTK_WINDOW(w_current->trwindow), + GTK_WIN_POS_MOUSE); g_signal_connect (G_OBJECT (w_current->trwindow), "response", G_CALLBACK (translate_dialog_response), @@ -379,8 +379,8 @@ void slot_edit_dialog (GschemToplevel *w_current, const char *string) GTK_RESPONSE_REJECT, -1); - gtk_window_position(GTK_WINDOW(w_current->sewindow), - GTK_WIN_POS_MOUSE); + gtk_window_set_position(GTK_WINDOW(w_current->sewindow), + GTK_WIN_POS_MOUSE); gtk_dialog_set_default_response (GTK_DIALOG (w_current->sewindow), GTK_RESPONSE_ACCEPT); @@ -527,8 +527,7 @@ void coord_dialog (GschemToplevel *w_current, int x, int y) GTK_RESPONSE_REJECT, NULL); - gtk_window_position (GTK_WINDOW (w_current->cowindow), - GTK_WIN_POS_NONE); + gtk_window_set_position(GTK_WINDOW(w_current->cowindow), GTK_WIN_POS_NONE); g_signal_connect (G_OBJECT (w_current->cowindow), "response", G_CALLBACK (coord_dialog_response), @@ -670,8 +669,7 @@ void x_dialog_hotkeys (GschemToplevel *w_current) GTK_RESPONSE_REJECT, NULL); - gtk_window_position (GTK_WINDOW (w_current->hkwindow), - GTK_WIN_POS_NONE); + gtk_window_set_position(GTK_WINDOW(w_current->hkwindow), GTK_WIN_POS_NONE); g_signal_connect (G_OBJECT (w_current->hkwindow), "response", G_CALLBACK (x_dialog_hotkeys_response), @@ -1011,8 +1009,8 @@ void find_text_dialog(GschemToplevel *w_current) GTK_RESPONSE_REJECT, -1); - gtk_window_position(GTK_WINDOW(w_current->tfindwindow), - GTK_WIN_POS_MOUSE); + gtk_window_set_position(GTK_WINDOW(w_current->tfindwindow), + GTK_WIN_POS_MOUSE); g_signal_connect (G_OBJECT (w_current->tfindwindow), "response", G_CALLBACK (find_text_dialog_response), @@ -1118,8 +1116,8 @@ void hide_text_dialog(GschemToplevel * w_current) GTK_RESPONSE_REJECT, -1); - gtk_window_position(GTK_WINDOW(w_current->thidewindow), - GTK_WIN_POS_MOUSE); + gtk_window_set_position(GTK_WINDOW(w_current->thidewindow), + GTK_WIN_POS_MOUSE); g_signal_connect (G_OBJECT (w_current->thidewindow), "response", G_CALLBACK (hide_text_dialog_response), @@ -1219,8 +1217,8 @@ void show_text_dialog(GschemToplevel * w_current) GTK_RESPONSE_REJECT, -1); - gtk_window_position(GTK_WINDOW(w_current->tshowwindow), - GTK_WIN_POS_MOUSE); + gtk_window_set_position(GTK_WINDOW(w_current->tshowwindow), + GTK_WIN_POS_MOUSE); g_signal_connect (G_OBJECT (w_current->tshowwindow), "response", G_CALLBACK (show_text_dialog_response), @@ -2324,7 +2322,7 @@ void x_dialog_edit_pin_type (GschemToplevel *w_current, const GList *obj_list) GTK_RESPONSE_CANCEL, -1); - gtk_window_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE); + gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL); diff --git a/gschem/src/x_image.c b/gschem/src/x_image.c index a1e40ea..faaf5ae 100644 --- a/gschem/src/x_image.c +++ b/gschem/src/x_image.c @@ -432,8 +432,7 @@ void x_image_setup (GschemToplevel *w_current) gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_ACCEPT); - gtk_window_position (GTK_WINDOW (dialog), - GTK_WIN_POS_MOUSE); + gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE); gtk_container_set_border_width(GTK_CONTAINER(dialog), DIALOG_BORDER_SPACING); diff --git a/gschem/src/x_newtext.c b/gschem/src/x_newtext.c index 293104e..65fe348 100644 --- a/gschem/src/x_newtext.c +++ b/gschem/src/x_newtext.c @@ -228,8 +228,7 @@ static void newtext_init(NewText *dialog) GTK_RESPONSE_REJECT, -1); - gtk_window_position(GTK_WINDOW (dialog), - GTK_WIN_POS_NONE); + gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_NONE); g_signal_connect (G_OBJECT (dialog), "response", G_CALLBACK (text_input_dialog_response), -- 2.1.0