vaccinewars

be a doctor and try to vaccinate the world
git clone git://src.adamsgaard.dk/vaccinewars # fast
git clone https://src.adamsgaard.dk/vaccinewars.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit a4b406ec2cbfb9e5dc657679c94133f9306a73b6
parent 92f4ddd56ec9e9acd92b81570bdd3f25a8325e85
Author: Ben Webb <ben@salilab.org>
Date:   Mon,  7 Oct 2002 10:44:18 +0000

Add placeholder functions for gtk_window_set_type_hint and
gtk_window_set_position, so that code using these functions compiles under
Win32.


Diffstat:
Msrc/gtkport/gtkenums.h | 17+++++++++++++++++
Msrc/gtkport/gtkport.c | 11+++++++++++
Msrc/gtkport/gtkport.h | 2++
3 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/src/gtkport/gtkenums.h b/src/gtkport/gtkenums.h @@ -110,6 +110,23 @@ typedef enum { GTK_IS_DEFAULT = 1 << 14 } GtkWidgetFlags; +typedef enum +{ + GDK_WINDOW_TYPE_HINT_NORMAL, + GDK_WINDOW_TYPE_HINT_DIALOG, + GDK_WINDOW_TYPE_HINT_MENU, + GDK_WINDOW_TYPE_HINT_TOOLBAR +} GdkWindowTypeHint; + +typedef enum +{ + GTK_WIN_POS_NONE, + GTK_WIN_POS_CENTER, + GTK_WIN_POS_MOUSE, + GTK_WIN_POS_CENTER_ALWAYS, + GTK_WIN_POS_CENTER_ON_PARENT +} GtkWindowPosition; + #endif /* CYGWIN */ #endif /* __GTKENUMS_H__ */ diff --git a/src/gtkport/gtkport.c b/src/gtkport/gtkport.c @@ -5408,6 +5408,17 @@ void gtk_hbutton_box_set_spacing_default(gint spacing) hbbox_spacing = spacing; } +/* + * Win32 doesn't use a window manager, so this is just a placeholder. + */ +void gtk_window_set_type_hint(GtkWindow *window, GdkWindowTypeHint hint) +{ +} + +void gtk_window_set_position(GtkWindow *window, GtkWindowPosition position) +{ +} + gchar *GtkGetFile(const GtkWidget *parent, const gchar *oldname, const gchar *title) { diff --git a/src/gtkport/gtkport.h b/src/gtkport/gtkport.h @@ -692,6 +692,8 @@ void gtk_set_default_font(HWND hWnd); HWND gtk_get_parent_hwnd(GtkWidget *widget); GtkStyle *gtk_style_new(void); void gtk_widget_set_style(GtkWidget *widget, GtkStyle *style); +void gtk_window_set_type_hint(GtkWindow *window, GdkWindowTypeHint hint); +void gtk_window_set_position(GtkWindow *window, GtkWindowPosition position); /* Functions for handling emitted signals */ void gtk_marshal_BOOL__GPOIN(GtkObject *object, GSList *actions,