diff options
author | Tor Lillqvist <tml@iki.fi> | 2000-05-16 21:27:10 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2000-05-16 21:27:10 +0000 |
commit | 8596f7edc559f94f6daeb593d298e9c78b0bf40d (patch) | |
tree | 3177e0bce7517422ddec629eb730aa285e33638c /gtk/gtktypeutils.h | |
parent | 386ae2097042d60afa3c4d4d4244161d16966b77 (diff) | |
download | gtk+-8596f7edc559f94f6daeb593d298e9c78b0bf40d.tar.gz |
Plug same refcount leaks as in the X11 backend.gdk-object-branchpoint
2000-05-17 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
refcount leaks as in the X11 backend.
* gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
cosmetics.
* gdk/win32/gdkwindow-win32.c: Similar changes as in X11
backend. Add _gdk_windowing_window_destroy().
* gtk/gtkcolorsel.c: Include correct backend-specific header.
Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
either, but these probably do exist on nanox?)
* gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
which isn't necessarily defined by <math.h>.
* gtk/gtkobject.c (gtk_object_init): Don't go up the class
ancestry past GtkObject.
* gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
from DLL on Win32.
* gtk/gtk.def: Update corresponding to recent changes.
* gtk/makefile.{cygwin,msc}: Updates.
Diffstat (limited to 'gtk/gtktypeutils.h')
-rw-r--r-- | gtk/gtktypeutils.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gtk/gtktypeutils.h b/gtk/gtktypeutils.h index 30f1bc0e81..50e573e0f8 100644 --- a/gtk/gtktypeutils.h +++ b/gtk/gtktypeutils.h @@ -242,8 +242,18 @@ GtkEnumValue* gtk_type_enum_find_value (GtkType enum_type, GtkFlagValue* gtk_type_flags_find_value (GtkType flags_type, const gchar *value_name); +#ifdef G_OS_WIN32 +# ifdef GTK_COMPILATION +# define GTKTYPEUTILS_VAR __declspec(dllexport) +# else +# define GTKTYPEUTILS_VAR extern __declspec(dllimport) +# endif +#else +# define GTKTYPEUTILS_VAR extern +#endif + /* urg */ -extern GType GTK_TYPE_IDENTIFIER; +GTKTYPEUTILS_VAR GType GTK_TYPE_IDENTIFIER; #ifdef __cplusplus |