summaryrefslogtreecommitdiff
path: root/gtk/gtklayout.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-10-22 18:46:33 +0200
committerMatthias Clasen <mclasen@redhat.com>2010-10-22 19:21:17 +0200
commit0d9ebb501df60cf1803858efcd1c79542588abd8 (patch)
treee2347bda6bad31a926399b9342a1680045ec8546 /gtk/gtklayout.c
parentce5a29bc384542839a5f12061499c8ec706b1c34 (diff)
downloadgtk+-0d9ebb501df60cf1803858efcd1c79542588abd8.tar.gz
Move min-display-width/height to GtkScrolledWindow
It is just too annoying to have to implement these properties in every scrollable. Instead, we now have ::min-content-height/width in GtkScrolledWindow. We also add GtkScrollablePolicy to determine how to size the scrollable content.
Diffstat (limited to 'gtk/gtklayout.c')
-rw-r--r--gtk/gtklayout.c32
1 files changed, 2 insertions, 30 deletions
diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c
index 1a4a536d55..ec06056eb9 100644
--- a/gtk/gtklayout.c
+++ b/gtk/gtklayout.c
@@ -52,8 +52,6 @@ struct _GtkLayoutPrivate
GtkAdjustment *hadjustment;
GtkAdjustment *vadjustment;
- gint min_display_width;
- gint min_display_height;
/* Properties */
@@ -78,8 +76,6 @@ enum {
PROP_0,
PROP_HADJUSTMENT,
PROP_VADJUSTMENT,
- PROP_MIN_DISPLAY_WIDTH,
- PROP_MIN_DISPLAY_HEIGHT,
PROP_WIDTH,
PROP_HEIGHT
};
@@ -622,18 +618,8 @@ gtk_layout_class_init (GtkLayoutClass *class)
GTK_PARAM_READWRITE));
/* Scrollable interface */
- g_object_class_override_property (gobject_class,
- PROP_HADJUSTMENT,
- "hadjustment");
- g_object_class_override_property (gobject_class,
- PROP_VADJUSTMENT,
- "vadjustment");
- g_object_class_override_property (gobject_class,
- PROP_MIN_DISPLAY_WIDTH,
- "min-display-width");
- g_object_class_override_property (gobject_class,
- PROP_MIN_DISPLAY_HEIGHT,
- "min-display-height");
+ g_object_class_override_property (gobject_class, PROP_HADJUSTMENT, "hadjustment");
+ g_object_class_override_property (gobject_class, PROP_VADJUSTMENT, "vadjustment");
g_object_class_install_property (gobject_class,
PROP_WIDTH,
@@ -685,12 +671,6 @@ gtk_layout_get_property (GObject *object,
case PROP_VADJUSTMENT:
g_value_set_object (value, priv->vadjustment);
break;
- case PROP_MIN_DISPLAY_WIDTH:
- g_value_set_int (value, priv->min_display_width);
- break;
- case PROP_MIN_DISPLAY_HEIGHT:
- g_value_set_int (value, priv->min_display_height);
- break;
case PROP_WIDTH:
g_value_set_uint (value, priv->width);
break;
@@ -722,12 +702,6 @@ gtk_layout_set_property (GObject *object,
gtk_layout_set_vadjustment (layout,
(GtkAdjustment*) g_value_get_object (value));
break;
- case PROP_MIN_DISPLAY_WIDTH:
- priv->min_display_width = g_value_get_int (value);
- break;
- case PROP_MIN_DISPLAY_HEIGHT:
- priv->min_display_height = g_value_get_int (value);
- break;
case PROP_WIDTH:
gtk_layout_set_size (layout, g_value_get_uint (value),
priv->height);
@@ -811,8 +785,6 @@ gtk_layout_init (GtkLayout *layout)
priv->hadjustment = NULL;
priv->vadjustment = NULL;
- priv->min_display_width = -1;
- priv->min_display_height = -1;
priv->bin_window = NULL;