summaryrefslogtreecommitdiff
path: root/gtk/gtkscrolledwindow.h
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2016-06-01 23:18:37 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2016-06-05 11:02:59 -0300
commit4e5ecb705247df55979891cd9e4c1c0617a9b71a (patch)
treeef73fc349ded196723975432c77cb3f956e09864 /gtk/gtkscrolledwindow.h
parentbd86715ed3e8dec5caab605fa3afc04ce013906a (diff)
downloadgtk+-4e5ecb705247df55979891cd9e4c1c0617a9b71a.tar.gz
scrolledwindow: add ::max-content-width and -height properties
The GtkScrolledWindow has support to set the minimum content size (both width and height) which controls the minimum space allocated, but does not exposes any way to control the maximum size the content can grow. After the introduction of GtkPopover, which always uses the minimum size of it's children widgets, the lack of max-content-width and -height properties became a concrete use case. This patch introduces the GtkScrolledWindow::max-content-width and -height properties. The properties will alter the minimum size of the scrolled window, making it grow up to the set value. They also respect the previously set ::min-content-width and -height. https://bugzilla.gnome.org/show_bug.cgi?id=742281
Diffstat (limited to 'gtk/gtkscrolledwindow.h')
-rw-r--r--gtk/gtkscrolledwindow.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk/gtkscrolledwindow.h b/gtk/gtkscrolledwindow.h
index 1a9e4d5133..0aca3ad370 100644
--- a/gtk/gtkscrolledwindow.h
+++ b/gtk/gtkscrolledwindow.h
@@ -214,6 +214,17 @@ void gtk_scrolled_window_set_overlay_scrolling (GtkScrolledWindow *sc
GDK_AVAILABLE_IN_3_16
gboolean gtk_scrolled_window_get_overlay_scrolling (GtkScrolledWindow *scrolled_window);
+GDK_AVAILABLE_IN_3_22
+void gtk_scrolled_window_set_max_content_width (GtkScrolledWindow *scrolled_window,
+ gint width);
+GDK_AVAILABLE_IN_3_22
+gint gtk_scrolled_window_get_max_content_width (GtkScrolledWindow *scrolled_window);
+
+GDK_AVAILABLE_IN_3_22
+void gtk_scrolled_window_set_max_content_height (GtkScrolledWindow *scrolled_window,
+ gint height);
+GDK_AVAILABLE_IN_3_22
+gint gtk_scrolled_window_get_max_content_height (GtkScrolledWindow *scrolled_window);
G_END_DECLS