summaryrefslogtreecommitdiff
path: root/gtk/gtkscrollable.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-04-28 22:04:31 +0200
committerBenjamin Otte <otte@redhat.com>2011-04-28 22:21:45 +0200
commit5b1ca9dfa88f6f5e925a2b111928f987a31998e1 (patch)
tree5db888225cffbbe50c5e2b7ab44882cb33c0b96c /gtk/gtkscrollable.c
parent2eac1ac73be647fefc0f1fde09f7fb31948ad911 (diff)
downloadgtk+-5b1ca9dfa88f6f5e925a2b111928f987a31998e1.tar.gz
widget: Allow underallocation for scrollables
Also document this fact.
Diffstat (limited to 'gtk/gtkscrollable.c')
-rw-r--r--gtk/gtkscrollable.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkscrollable.c b/gtk/gtkscrollable.c
index 0ff0d9612c..7dbaa824d0 100644
--- a/gtk/gtkscrollable.c
+++ b/gtk/gtkscrollable.c
@@ -45,6 +45,14 @@
* </listitem>
* <listitem>
* <para>
+ * Because its preferred size is the size for a fully expanded widget,
+ * the scrollable widget must be able to cope with underallocations.
+ * This means that it must accept any value passed to its
+ * #GtkWidgetClass.size_allocate() function.
+ * </para>
+ * </listitem>
+ * <listitem>
+ * <para>
* When the parent allocates space to the scrollable child widget, the widget should update
* the adjustments' properties with new values.
* </para>