From bd6ac8c69cbf826f49ffb7d2e590d47e6d76ac3f Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Thu, 9 Jan 2003 02:38:13 +0000 Subject: [PATCH] #include for putenv, for strlen. Wed Jan 8 18:43:03 2003 Manish Singh * gdk/x11/gdkdisplay-x11.c: #include for putenv, for strlen. * gdk/x11/gdkscreen-x11.c: #include for getenv, 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. --- ChangeLog | 14 ++++++++++++++ ChangeLog.pre-2-10 | 14 ++++++++++++++ ChangeLog.pre-2-4 | 14 ++++++++++++++ ChangeLog.pre-2-6 | 14 ++++++++++++++ ChangeLog.pre-2-8 | 14 ++++++++++++++ gdk/x11/gdkdisplay-x11.c | 2 ++ gdk/x11/gdkscreen-x11.c | 3 +++ tests/testgtk.c | 4 ++-- tests/testtextbuffer.c | 2 +- 9 files changed, 78 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9cad23d5ff..ddb3f01930 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +Wed Jan 8 18:43:03 2003 Manish Singh + + * gdk/x11/gdkdisplay-x11.c: #include for putenv, + for strlen. + + * gdk/x11/gdkscreen-x11.c: #include for getenv, + 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. + 2003-01-08 Matthias Clasen * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 9cad23d5ff..ddb3f01930 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,17 @@ +Wed Jan 8 18:43:03 2003 Manish Singh + + * gdk/x11/gdkdisplay-x11.c: #include for putenv, + for strlen. + + * gdk/x11/gdkscreen-x11.c: #include for getenv, + 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. + 2003-01-08 Matthias Clasen * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 9cad23d5ff..ddb3f01930 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,17 @@ +Wed Jan 8 18:43:03 2003 Manish Singh + + * gdk/x11/gdkdisplay-x11.c: #include for putenv, + for strlen. + + * gdk/x11/gdkscreen-x11.c: #include for getenv, + 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. + 2003-01-08 Matthias Clasen * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 9cad23d5ff..ddb3f01930 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,17 @@ +Wed Jan 8 18:43:03 2003 Manish Singh + + * gdk/x11/gdkdisplay-x11.c: #include for putenv, + for strlen. + + * gdk/x11/gdkscreen-x11.c: #include for getenv, + 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. + 2003-01-08 Matthias Clasen * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 9cad23d5ff..ddb3f01930 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,17 @@ +Wed Jan 8 18:43:03 2003 Manish Singh + + * gdk/x11/gdkdisplay-x11.c: #include for putenv, + for strlen. + + * gdk/x11/gdkscreen-x11.c: #include for getenv, + 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. + 2003-01-08 Matthias Clasen * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c index 7c4a328a4e..dda26b1712 100644 --- a/gdk/x11/gdkdisplay-x11.c +++ b/gdk/x11/gdkdisplay-x11.c @@ -23,6 +23,8 @@ #include +#include +#include #include #include diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c index 3ad5cd9f11..8036f1fb31 100644 --- a/gdk/x11/gdkscreen-x11.c +++ b/gdk/x11/gdkscreen-x11.c @@ -21,6 +21,9 @@ * Boston, MA 02111-1307, USA. */ +#include +#include + #include #include #include "gdkscreen.h" 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)); diff --git a/tests/testtextbuffer.c b/tests/testtextbuffer.c index 7f48c039b3..808eea6fa3 100644 --- a/tests/testtextbuffer.c +++ b/tests/testtextbuffer.c @@ -169,7 +169,7 @@ check_get_set_text (GtkTextBuffer *buffer, if (n != strlen (str)) g_error ("Sum of chars in lines is %d but buffer byte count is %d", - n, strlen (str)); + n, (int) strlen (str)); gtk_text_buffer_set_text (buffer, "", -1);