[gnome-builder] gstyle: set propagate-natural-{width, height} on scrolledwindow
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] gstyle: set propagate-natural-{width, height} on scrolledwindow
- Date: Thu, 1 Sep 2016 21:56:36 +0000 (UTC)
commit a088f8a9b1115a108c608fc76d6062aebeb15584
Author: Sebastien Lafargue <slafargue gnome org>
Date: Thu Sep 1 23:33:26 2016 +0200
gstyle: set propagate-natural-{width,height} on scrolledwindow
We want this in various parts of our UI so that the child widgets grow
and shrink up to a certain point.
contrib/gstyle/ui/gstyle-color-panel.ui | 4 ++++
contrib/gstyle/ui/gstyle-palette-widget.ui | 6 ++++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/contrib/gstyle/ui/gstyle-color-panel.ui b/contrib/gstyle/ui/gstyle-color-panel.ui
index 2e70639..00d6b33 100644
--- a/contrib/gstyle/ui/gstyle-color-panel.ui
+++ b/contrib/gstyle/ui/gstyle-color-panel.ui
@@ -973,6 +973,8 @@
<property name="min-content-width">150</property>
<property name="max-content-width">400</property>
<property name="max-content-height">400</property>
+ <property name="propagate-natural-height">true</property>
+ <property name="propagate-natural-width">true</property>
<property name="visible">true</property>
<child>
<object class="GtkListBox" id="palette_list">
@@ -995,6 +997,8 @@
<property name="min-content-height">47</property>
<property name="max-content-width">400</property>
<property name="max-content-height">400</property>
+ <property name="propagate-natural-height">true</property>
+ <property name="propagate-natural-width">true</property>
<property name="expand">true</property>
<property name="visible">true</property>
<child>
diff --git a/contrib/gstyle/ui/gstyle-palette-widget.ui b/contrib/gstyle/ui/gstyle-palette-widget.ui
index 05f4171..e145171 100644
--- a/contrib/gstyle/ui/gstyle-palette-widget.ui
+++ b/contrib/gstyle/ui/gstyle-palette-widget.ui
@@ -13,6 +13,8 @@
<child>
<object class="GtkScrolledWindow" id="list_scrolled_window">
<property name="hscrollbar_policy">GTK_POLICY_NEVER</property>
+ <property name="propagate-natural-height">true</property>
+ <property name="propagate-natural-width">true</property>
<property name="visible">true</property>
<property name="expand">true</property>
<child>
@@ -41,6 +43,8 @@
<child>
<object class="GtkScrolledWindow" id="flow_scrolled_window">
<property name="hscrollbar_policy">GTK_POLICY_NEVER</property>
+ <property name="propagate-natural-height">true</property>
+ <property name="propagate-natural-width">true</property>
<property name="visible">true</property>
<property name="expand">true</property>
<child>
@@ -93,6 +97,8 @@
<property name="min-content-width">150</property>
<property name="max-content-width">300</property>
<property name="max-content-height">600</property>
+ <property name="propagate-natural-height">true</property>
+ <property name="propagate-natural-width">true</property>
<property name="visible">true</property>
<child>
<object class="GtkListBox" id="palette_list">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]