summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2012-10-02 23:11:39 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2012-10-02 23:11:39 +0900
commit8705c59f8cfe703abbc0bbc270e27656b81ef52d (patch)
tree6fdcae758c962fdadd9fcdf743bcee09dfec880b
parent4f6a55d689b9d77fcaf661d6f107dee54d99f7ef (diff)
downloadgtk+-8705c59f8cfe703abbc0bbc270e27656b81ef52d.tar.gz
Amended documentation for gtk_widget_set_size_request().
It seems we missed updating this since GTK+3, widgets cannot be allocated less than the size they requested in thier request phase, and explicit sizes are used only to grow the size request.
-rw-r--r--gtk/gtkwidget.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index c8f8fd51d2..58ad57af23 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -9334,9 +9334,8 @@ gtk_widget_set_usize_internal (GtkWidget *widget,
* @height: height @widget should request, or -1 to unset
*
* Sets the minimum size of a widget; that is, the widget's size
- * request will be @width by @height. You can use this function to
- * force a widget to be either larger or smaller than it normally
- * would be.
+ * request will be at least @width by @height. You can use this
+ * function to force a widget to be larger than it normally would be.
*
* In most cases, gtk_window_set_default_size() is a better choice for
* toplevel windows than this function; setting the default size will
@@ -9360,9 +9359,6 @@ gtk_widget_set_usize_internal (GtkWidget *widget,
* If the size request in a given direction is -1 (unset), then
* the "natural" size request of the widget will be used instead.
*
- * Widgets can't actually be allocated a size less than 1 by 1, but
- * you can pass 0,0 to this function to mean "as small as possible."
- *
* The size request set here does not include any margin from the
* #GtkWidget properties margin-left, margin-right, margin-top, and
* margin-bottom, but it does include pretty much all other padding