diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2011-03-05 17:49:49 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2011-03-25 18:42:07 +0900 |
commit | 887142f1f5d364765bc84a46ddb187be08261710 (patch) | |
tree | 25591d2b4c6df43b2d1b443c5a94340f1bd69567 /gtk/gtkbin.c | |
parent | 59440927d001e4d6400548a9e7f02dd43be6a4d0 (diff) | |
download | gtk+-887142f1f5d364765bc84a46ddb187be08261710.tar.gz |
Added GTK_SIZE_REQUEST_CONSTANT_SIZE to GtkSizeRequestMode
The constant size request mode defines a request mode where
height-for-width geometry is unneeded, thus optimizing GTK+
by reducing the overall amount of requests that need to be
performed and cached while resizing an interface.
Diffstat (limited to 'gtk/gtkbin.c')
-rw-r--r-- | gtk/gtkbin.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gtk/gtkbin.c b/gtk/gtkbin.c index af3efea253..331ae53766 100644 --- a/gtk/gtkbin.c +++ b/gtk/gtkbin.c @@ -59,7 +59,6 @@ static void gtk_bin_forall (GtkContainer *container, static GType gtk_bin_child_type (GtkContainer *container); -static GtkSizeRequestMode gtk_bin_get_request_mode (GtkWidget *widget); static void gtk_bin_get_preferred_width_for_height (GtkWidget *widget, gint height, gint *minimum_width, @@ -77,7 +76,6 @@ gtk_bin_class_init (GtkBinClass *class) GtkWidgetClass *widget_class = (GtkWidgetClass*) class; GtkContainerClass *container_class = (GtkContainerClass*) class; - widget_class->get_request_mode = gtk_bin_get_request_mode; widget_class->get_preferred_width_for_height = gtk_bin_get_preferred_width_for_height; widget_class->get_preferred_height_for_width = gtk_bin_get_preferred_height_for_width; @@ -184,18 +182,6 @@ gtk_bin_forall (GtkContainer *container, * deduce a common code path for the get_width_for_height()/get_height_for_width() * cases by using the delta of the base size requsts. */ -static GtkSizeRequestMode -gtk_bin_get_request_mode (GtkWidget *widget) -{ - GtkBin *bin = GTK_BIN (widget); - GtkBinPrivate *priv = bin->priv; - - if (priv->child) - return gtk_widget_get_request_mode (priv->child); - - return GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH; -} - static void get_child_padding_delta (GtkBin *bin, gint *delta_h, |