summaryrefslogtreecommitdiff
path: root/gtk/gtkobject.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2000-05-16 21:27:10 +0000
committerTor Lillqvist <tml@src.gnome.org>2000-05-16 21:27:10 +0000
commit8596f7edc559f94f6daeb593d298e9c78b0bf40d (patch)
tree3177e0bce7517422ddec629eb730aa285e33638c /gtk/gtkobject.c
parent386ae2097042d60afa3c4d4d4244161d16966b77 (diff)
downloadgdk-pixbuf-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/gtkobject.c')
-rw-r--r--gtk/gtkobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkobject.c b/gtk/gtkobject.c
index 887036537..24662388c 100644
--- a/gtk/gtkobject.c
+++ b/gtk/gtkobject.c
@@ -182,7 +182,7 @@ gtk_object_init (GtkObject *object,
needs_construction |= klass->construct_args != NULL;
klass = g_type_class_peek_parent (klass);
}
- while (klass && !needs_construction);
+ while (klass && GTK_IS_OBJECT_CLASS (klass) && !needs_construction);
if (!needs_construction)
GTK_OBJECT_FLAGS (object) |= GTK_CONSTRUCTED;
}