summaryrefslogtreecommitdiff
path: root/tests/testsocket.c
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2001-05-25 15:43:53 +0000
committerHans Breuer <hans@src.gnome.org>2001-05-25 15:43:53 +0000
commitb5db5d514d7ffd829c6e97a4630cf95d7b8fef3d (patch)
tree44df7743cbc3ca32f44daab115ff5aa02ce0dbaf /tests/testsocket.c
parentc436d8e24992ec113cb1f461bb6de4522444b1bd (diff)
downloadgdk-pixbuf-b5db5d514d7ffd829c6e97a4630cf95d7b8fef3d.tar.gz
made fil mode GDK_STIPPLED actually work -> check boxes and radio buttons
2001-05-25 Hans Breuer <hans@breuer.org> * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually work -> check boxes and radio buttons are drawn now, even on win9x. Improved line settings a bit, still no clue how to get really dotted lines on win9x, on NT it's PS_ALTERNATE. * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for GDK_HINT_MIN_SIZE as well * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST * gtk/gtk.def : updated * gtk/gtktreeprivate.h : change column_drop_func to be a function pointer not a function pointer pointer * tests/testdnd.c : include <stdlib.h> for putenv prototype * tests/testsocket.c : made it compile on win32 again * tests/makefile.msc : one more test-app uses prop-editor.obj
Diffstat (limited to 'tests/testsocket.c')
-rw-r--r--tests/testsocket.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/testsocket.c b/tests/testsocket.c
index de257ade0..a775eefd3 100644
--- a/tests/testsocket.c
+++ b/tests/testsocket.c
@@ -1,7 +1,13 @@
#include <gtk/gtk.h>
+
+#if defined (GDK_WINDOWING_X11)
#include "x11/gdkx.h"
+#elif defined (GDK_WINDOWING_WIN32)
+#include "win32/gdkwin32.h"
+#define GDK_WINDOW_XWINDOW(w) (guint)GDK_WINDOW_HWND(w)
+#endif
-#include <unistd.h>
+#include <string.h>
#include <stdlib.h>
#include <stdio.h>