diff options
author | Benjamin Otte <otte@redhat.com> | 2013-05-11 14:29:29 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2013-05-11 14:48:01 +0200 |
commit | bd4d00918ed6293f7b45921ee4a52068aa78aa44 (patch) | |
tree | e9552ed115a66a6a46c2a7833d49101328e07c75 /gtk/gtkwidgetprivate.h | |
parent | 205c16df322706264464cd86d71ef41ff4338fb2 (diff) | |
download | gtk+-bd4d00918ed6293f7b45921ee4a52068aa78aa44.tar.gz |
API: Don't export gtk_widget_preferred_size_and_baseline()
gtk_widget_preferred_size() is only useful if you want to quickly port a
widget from GTK2 sizing code to GTK3 but does not properly work with
height-for-width as used in GTK. So we don't want to encourage people to
use it. In particular we want people to convert to height-for-width
before adding baseline support to their widgets.
Diffstat (limited to 'gtk/gtkwidgetprivate.h')
-rw-r--r-- | gtk/gtkwidgetprivate.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkwidgetprivate.h b/gtk/gtkwidgetprivate.h index 87943904ce..7f48a7c562 100644 --- a/gtk/gtkwidgetprivate.h +++ b/gtk/gtkwidgetprivate.h @@ -81,6 +81,11 @@ void _gtk_widget_get_preferred_size_for_size (GtkWidget *widget, gint *natural, gint *minimum_baseline, gint *natural_baseline); +void _gtk_widget_get_preferred_size_and_baseline(GtkWidget *widget, + GtkRequisition *minimum_size, + GtkRequisition *natural_size, + gint *minimum_baseline, + gint *natural_baseline); gboolean _gtk_widget_has_baseline_support (GtkWidget *widget); gboolean _gtk_widget_get_translation_to_window (GtkWidget *widget, |