[gtk+] gtk3-demo: avoid a resizing problem
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk3-demo: avoid a resizing problem
- Date: Sat, 11 Jan 2014 23:07:58 +0000 (UTC)
commit 902ebaafd5ddca6fec8a7271190f667892810bfd
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jan 11 18:06:06 2014 -0500
gtk3-demo: avoid a resizing problem
Two changes that sneaked in during the GtkApplication port
made it so that the window would not let you shrink it again
after you've made it larger. This also yielded very surprising
results when unmaximizing the window: it would come back to
have a minimum width slightly larger than the screen, making
maximization fail from then on.
demos/gtk-demo/main.ui | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/demos/gtk-demo/main.ui b/demos/gtk-demo/main.ui
index 63b07da..07d2069 100644
--- a/demos/gtk-demo/main.ui
+++ b/demos/gtk-demo/main.ui
@@ -31,8 +31,8 @@
</columns>
</object>
<object class="GtkApplicationWindow" id="window">
- <property name="width_request">800</property>
- <property name="height_request">600</property>
+ <property name="default-width">800</property>
+ <property name="default-height">600</property>
<property name="can_focus">False</property>
<property name="title">GTK+ Demo</property>
<signal name="delete-event" handler="gtk_false" swapped="no"/>
@@ -123,7 +123,6 @@
<object class="GtkScrolledWindow" id="scrolledwindow1">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="hscrollbar_policy">never</property>
<property name="shadow_type">none</property>
<child>
<object class="GtkTextView" id="info-textview">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]