diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2019-04-12 17:08:21 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2019-04-12 17:10:30 +0100 |
commit | a27737b04e61af4ca0fc75fa027da84fdc5a71e5 (patch) | |
tree | 9d2532edb8443de3497ce25ea60b3fc9992a2d81 /gtk/gtkcustomlayout.c | |
parent | bd2d07e671422cb3c016d58ea025f4c4e75cbf52 (diff) | |
download | gtk+-a27737b04e61af4ca0fc75fa027da84fdc5a71e5.tar.gz |
Add default GtkLayoutManagerClass.get_request_mode()
Just like GtkContainer provides a default implementation of
GtkWidgetClass.get_request_mode(), we can do the same inside
GtkLayoutManager.
A default implementation preserves the behavior of existing widgets that
moved, or will move, to a GtkLayoutManager.
Diffstat (limited to 'gtk/gtkcustomlayout.c')
-rw-r--r-- | gtk/gtkcustomlayout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcustomlayout.c b/gtk/gtkcustomlayout.c index a1bfe95fff..2616a21df4 100644 --- a/gtk/gtkcustomlayout.c +++ b/gtk/gtkcustomlayout.c @@ -36,7 +36,7 @@ gtk_custom_layout_get_request_mode (GtkLayoutManager *manager, if (self->request_mode_func != NULL) return self->request_mode_func (widget); - return GTK_SIZE_REQUEST_CONSTANT_SIZE; + return GTK_LAYOUT_MANAGER_CLASS (gtk_custom_layout_parent_class)->get_request_mode (manager, widget); } static void |