summaryrefslogtreecommitdiff
path: root/gtk/gtkwidget.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2010-09-05 12:19:14 -0400
committerHavoc Pennington <hp@pobox.com>2010-09-12 21:47:10 -0400
commitcd2a19a68dbd646ae120f110ef9a051fef7f49bf (patch)
tree48a7f781e5007eecd48c3c5155615c26b574c563 /gtk/gtkwidget.h
parent9debfe243fcc1df5276109fe82b70ad98c380adf (diff)
downloadgtk+-cd2a19a68dbd646ae120f110ef9a051fef7f49bf.tar.gz
GtkWidget: add adjust_size_request adjust_size_allocation virtual funcs
Use these new methods to handle set_size_request (aka aux_info) inside gtkwidget.c, instead of having external code mess with it. The virtual functions can be used for other purposes in the future. For example, GtkContainer::border_width could be automatically implemented for all container subclasses.
Diffstat (limited to 'gtk/gtkwidget.h')
-rw-r--r--gtk/gtkwidget.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index b413e0d421..66d3f2737c 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -473,6 +473,15 @@ struct _GtkWidgetClass
gint y,
gboolean keyboard_tooltip,
GtkTooltip *tooltip);
+
+ void (* adjust_size_request) (GtkWidget *widget,
+ GtkOrientation orientation,
+ gint for_size,
+ gint *minimum_size,
+ gint *natural_size);
+ void (* adjust_size_allocation) (GtkWidget *widget,
+ GtkAllocation *allocation);
+
/* Signals without a C default handler class slot:
* gboolean (*damage_event) (GtkWidget *widget,
* GdkEventExpose *event);