Mail Archives: geda-user/2014/10/14/16:18:05
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
- Raw text -