[gtk+/wip/csoriano/pathbar-prototype: 166/167] gtkhidingbox: prefer width for height
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/csoriano/pathbar-prototype: 166/167] gtkhidingbox: prefer width for height
- Date: Wed, 11 Nov 2015 13:55:52 +0000 (UTC)
commit 417c8eca2ff557571157f832d3e699eaf99a974f
Author: Carlos Soriano <csoriano gnome org>
Date: Mon Nov 9 10:08:20 2015 +0100
gtkhidingbox: prefer width for height
gtk/gtkhidingbox.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkhidingbox.c b/gtk/gtkhidingbox.c
index 097341f..c76670a 100644
--- a/gtk/gtkhidingbox.c
+++ b/gtk/gtkhidingbox.c
@@ -387,6 +387,12 @@ gtk_hiding_box_get_preferred_height (GtkWidget *widget,
}
}
+static GtkSizeRequestMode
+gtk_hiding_box_get_request_mode (GtkWidget *self)
+{
+ return GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT;
+}
+
static void
gtk_hiding_box_init (GtkHidingBox *box)
{
@@ -410,6 +416,7 @@ gtk_hiding_box_class_init (GtkHidingBoxClass *class)
widget_class->size_allocate = gtk_hiding_box_size_allocate;
widget_class->get_preferred_width = gtk_hiding_box_get_preferred_width;
widget_class->get_preferred_height = gtk_hiding_box_get_preferred_height;
+ widget_class->get_request_mode = gtk_hiding_box_get_request_mode;
container_class->add = gtk_hiding_box_add;
container_class->remove = gtk_hiding_box_remove;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]