summaryrefslogtreecommitdiff
path: root/tests/testgtk.c
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2003-01-09 02:38:13 +0000
committerManish Singh <yosh@src.gnome.org>2003-01-09 02:38:13 +0000
commitbd6ac8c69cbf826f49ffb7d2e590d47e6d76ac3f (patch)
treef626be1703ed185594385c35bca355f92c730449 /tests/testgtk.c
parent62113a62714d727ad2e12a53a11619c5a82d73b7 (diff)
downloadgtk+-bd6ac8c69cbf826f49ffb7d2e590d47e6d76ac3f.tar.gz
#include <stdlib.h> for putenv, <string.h> for strlen.
Wed Jan 8 18:43:03 2003 Manish Singh <yosh@gimp.org> * gdk/x11/gdkdisplay-x11.c: #include <stdlib.h> for putenv, <string.h> for strlen. * gdk/x11/gdkscreen-x11.c: #include <stdlib.h> for getenv, <string.h> for strrchr. * tests/testgtk.c (create_saved_position): "x" and "y" properties for widgets no longer exist, use gtk_window_move instead. * test/testtextbuffer.c (check_get_set_text): cast strlen to int for g_error.
Diffstat (limited to 'tests/testgtk.c')
-rw-r--r--tests/testgtk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c
index d33ee7b876..35f7dc1bf2 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -2996,13 +2996,13 @@ create_saved_position (GtkWidget *widget)
window = g_object_connect (gtk_widget_new (GTK_TYPE_WINDOW,
"type", GTK_WINDOW_TOPLEVEL,
- "x", upositionx,
- "y", upositiony,
"title", "Saved Position",
NULL),
"signal::configure_event", uposition_configure, NULL,
NULL);
+ gtk_window_move (GTK_WINDOW (window), upositionx, upositiony);
+
gtk_window_set_screen (GTK_WINDOW (window),
gtk_widget_get_screen (widget));