move the floating flag from the GInitiallyUnowned bit to GTK_FLOATING.

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.
This commit is contained in:
Tim Janik 2006-03-09 13:33:46 +00:00 committed by Tim Janik
parent e2c20c07ee
commit 0359e15d3c
3 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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.

View File

@ -1,3 +1,9 @@
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.

View File

@ -381,6 +381,12 @@ static void
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));
}
/********************************************