diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2016-03-14 15:41:16 -0700 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2016-03-14 16:10:15 -0700 |
commit | d61c2b4cce38eb480aa53f8fdb08c4b181e2aa99 (patch) | |
tree | 870d4b2e3230a60b059aea466c8e7a5089ccc690 /gtk/gtkcontainerprivate.h | |
parent | 4f2cbd1856ae8884741313bb971632ad0e6b9997 (diff) | |
download | gtk+-d61c2b4cce38eb480aa53f8fdb08c4b181e2aa99.tar.gz |
window: stop stomping on resize-mode set by external API
commit c3dc0d80f1353ac66882ca3288ca7e9a13c47d6f fixed the behavior of
GtkContainer widgets requesting an IMMEDIATE resize-mode.
However, GtkWindow has been stomping on resize-mode during realize()
since commit addcc64b9cbb2fb1225080075ad3112a3d93d839. The combination
of factors that led to this not being a visible problem during all this
while is uncertain, but this now causes the Shell to continuously try to
relayout its ShellEmbeddedWindow (a GtkWindow subclass).
This commit separates the resize-mode as set internally by GtkWindow
from the one set with the external API, so that GtkWindow only changes
it when it had not been set before by the subclass.
https://bugzilla.gnome.org/show_bug.cgi?id=763650
Diffstat (limited to 'gtk/gtkcontainerprivate.h')
-rw-r--r-- | gtk/gtkcontainerprivate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkcontainerprivate.h b/gtk/gtkcontainerprivate.h index 1961444f7c..7402a6676b 100644 --- a/gtk/gtkcontainerprivate.h +++ b/gtk/gtkcontainerprivate.h @@ -44,6 +44,8 @@ void _gtk_container_set_border_width_set (GtkContainer *container, gboolean border_width_set); void gtk_container_get_children_clip (GtkContainer *container, GtkAllocation *out_clip); +void gtk_container_set_default_resize_mode (GtkContainer *container, + GtkResizeMode resize_mode); G_END_DECLS |