]> Pileus Git - ~andy/gtk/commit
Fixed issues with "hierarchy-changed" signal.
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Fri, 24 Dec 2010 03:01:43 +0000 (12:01 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Thu, 6 Jan 2011 05:39:40 +0000 (14:39 +0900)
commitfdba9f281dbf7487129ab59d71090bc775d8f316
tree4e59e522fee36773c76aaa9ded028837634ce31e
parent69b1bfb17b8c32affe618db59b57cbba9cdddc7b
Fixed issues with "hierarchy-changed" signal.

GtkFileChooserDefault watches the toplevel and montitors "set-focus"
signal on it... however the connection needs to be remade when the
GtkFileChooserDialog is in an embedded toplevel.

Measure's taken: GtkWindow propagates hierarchy changes when
_gtk_window_set_is_toplevel() is called, gtk_widget_unparent()
unsets the widget's parent window earlier in the function so that
the possible hierarchy change is still able to properly access the hierarchy.

GtkFileChooserDefault checks if the "new" toplevel is indeed
gtk_widget_is_toplevel() but not the old one, GtkRange has been
updated to use gtk_widget_is_toplevel() inside it's hierarhcy_changed
vfunc, other classes already do this properly.
gtk/gtkfilechooserdefault.c
gtk/gtkrange.c
gtk/gtkwidget.c
gtk/gtkwindow.c