summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Boles <dboles.src@gmail.com>2019-03-30 19:47:50 +0000
committerDaniel Boles <dboles.src@gmail.com>2019-03-30 19:47:50 +0000
commit96bf90abe434a59621e0b7bb04188accf97887f1 (patch)
treeb1502fbeec86f693f6d53a9a910cbed8c177a7d1
parent081210688c8951baf3e2a6c9b76003f620d659b3 (diff)
downloadgtk+-96bf90abe434a59621e0b7bb04188accf97887f1.tar.gz
Widget: Don't refer to the old get_preferred_*()
measure() replaced get_preferred_height() and get_preferred_width().
-rw-r--r--gtk/gtkwidget.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index c561724827..24edcc230e 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -168,8 +168,8 @@ struct _GtkWidget
* it prefers to be allocated in %GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH or
* %GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT mode.
* %GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH means the widget prefers to have
- * #GtkWidgetClass.get_preferred_width() called and then
- * #GtkWidgetClass.get_preferred_height_for_width().
+ * #GtkWidgetClass.measure() called first to get the default width (passing
+ * a for_size of -1), then again to get the height for said default width.
* %GTK_SIZE_REQUEST_CONSTANT_SIZE disables any height-for-width or
* width-for-height geometry management for said widget and is the
* default return.