Thu Mar 9 14:29:43 2006 Tim Janik <timj@gtk.org>
* gtk/gtkobject.c (gtk_object_init): move the floating flag from
the GInitiallyUnowned bit to GTK_FLOATING. fixes tests/floatingcheck.
kudos to mitch for debugging this.
+Thu Mar 9 14:29:43 2006 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkobject.c (gtk_object_init): move the floating flag from
+ the GInitiallyUnowned bit to GTK_FLOATING. fixes tests/floatingcheck.
+ kudos to mitch for debugging this.
+
2006-03-09 Matthias Clasen <mclasen@redhat.com>
* Makefile.am: Add ChangeLog.pre-2.8 to EXTRA_DIST.
+Thu Mar 9 14:29:43 2006 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkobject.c (gtk_object_init): move the floating flag from
+ the GInitiallyUnowned bit to GTK_FLOATING. fixes tests/floatingcheck.
+ kudos to mitch for debugging this.
+
2006-03-09 Matthias Clasen <mclasen@redhat.com>
* Makefile.am: Add ChangeLog.pre-2.8 to EXTRA_DIST.
gtk_object_init (GtkObject *object,
GtkObjectClass *klass)
{
+ gboolean was_floating;
+ /* sink the GInitiallyUnowned floating flag */
+ was_floating = gobject_floating_flag_handler (object, -1);
+ /* set GTK_FLOATING via gtk_object_floating_flag_handler */
+ if (was_floating)
+ g_object_force_floating (G_OBJECT (object));
}
/********************************************