summaryrefslogtreecommitdiff
path: root/tests/testfilechooser.c
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2003-11-15 20:35:55 +0000
committerHans Breuer <hans@src.gnome.org>2003-11-15 20:35:55 +0000
commit947b32b7dcaf233f3c2bb9a38fb07c2c64a1ee0b (patch)
tree291ecb13f1f016b39addcbe1d9f84c551f5d982e /tests/testfilechooser.c
parent9e831c8b8ea506d02e31d4aefa86f49a29a395a6 (diff)
downloadgtk+-947b32b7dcaf233f3c2bb9a38fb07c2c64a1ee0b.tar.gz
updated added all the new tests
2003-11-15 Hans Breuer <hans@breuer.org> * gdk/makefile.msc gdk/gdk.def gtk/gtk.def gtk/makefile.msc.in : updated * tests/makefile.msc : added all the new tests * gtk/gtkfilefilter.c(finalize) : initialize filter from object not from itself * gtk/gtkfilesystemwin32.[hc] : copied from gtkfilesystemunix.[hc] modified as less as posible to have aworking implementation on win32. There maybe the desire to merge the unchanged pats into a common base class. Also implemented a simple glib based bookmark handling, which is currently missing in gtkfilesystemunix.[hc] but can be copied over there. * gtk/gtkfilechooserwidget.c : conditional include gtkfilesystemwin32.h * gdk/win32/gdkwindow-win32.c : implement gdk_window_set_keep_above() and gdk_window_set_keep_below() * tests/testmerge.c : don't include unistd.h unconditionally, #define STDOUT_FILENO if it isn't defined * tests/testfilechooser.c : make it compile on win32
Diffstat (limited to 'tests/testfilechooser.c')
-rw-r--r--tests/testfilechooser.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/testfilechooser.c b/tests/testfilechooser.c
index d813549536..66aff6d8a2 100644
--- a/tests/testfilechooser.c
+++ b/tests/testfilechooser.c
@@ -1,11 +1,26 @@
+#include "config.h"
+
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <time.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
-
+#endif
#include <gtk/gtk.h>
+
+#ifdef G_OS_WIN32
+# define WIN32_MEAN_AND_LEAN
+# include <windows.h> /* ExtractAssociatedIcon */
+# include <io.h>
+# define localtime_r(t,b) localtime(t)
+# ifndef S_ISREG
+# define S_ISREG(m) ((m) & _S_IFREG)
+# endif
+# include <gdk/win32/gdkwin32.h> /* gdk_win32_hdc_get */
+#endif
+
#include "prop-editor.h"
static GtkWidget *preview_label;