[gtk] Widget: Don't refer to the old get_preferred_*()



commit 96bf90abe434a59621e0b7bb04188accf97887f1
Author: Daniel Boles <dboles src gmail com>
Date:   Sat Mar 30 19:47:50 2019 +0000

    Widget: Don't refer to the old get_preferred_*()
    
    measure() replaced get_preferred_height() and get_preferred_width().

 gtk/gtkwidget.h | 4 ++--
 1 file 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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]