summaryrefslogtreecommitdiff
path: root/gtk/gtkwidgetprivate.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-03-27 10:22:14 +0100
committerAlexander Larsson <alexl@redhat.com>2013-04-23 05:58:48 +0200
commit316d4504213689a9e81f010ad230a4ce86b17803 (patch)
treee552c2c62b3f24985ecc79993d92049c6e4a5d17 /gtk/gtkwidgetprivate.h
parentc7b4dd5f9dad97dd4d5f1fa13d8ff1113d7668b3 (diff)
downloadgtk+-316d4504213689a9e81f010ad230a4ce86b17803.tar.gz
Handle non-baseline supporting subclasses overriding baseline supporting classes
If a subclass (say a child of GtkButton) overrides the non-baseline size request methods we need to call these, rather than the new get_height_and_baseline_for_width method. In order to handle this we make the default for this method to be NULL, and instead check at runtime which method to call. If any non-baseline vfunc has changed in a class but the baseline one hasn't, then we can't use the baseline one.
Diffstat (limited to 'gtk/gtkwidgetprivate.h')
-rw-r--r--gtk/gtkwidgetprivate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkwidgetprivate.h b/gtk/gtkwidgetprivate.h
index 79278134eb..6ec03fd9b4 100644
--- a/gtk/gtkwidgetprivate.h
+++ b/gtk/gtkwidgetprivate.h
@@ -77,6 +77,7 @@ void _gtk_widget_get_preferred_size_for_size (GtkWidget *widget,
gint size,
gint *minimum,
gint *natural);
+gboolean _gtk_widget_has_baseline_support (GtkWidget *widget);
gboolean _gtk_widget_get_translation_to_window (GtkWidget *widget,
GdkWindow *window,