summaryrefslogtreecommitdiff
path: root/src/zenity.ui
diff options
context:
space:
mode:
authorAlan <alan@boum.org>2017-03-18 10:24:47 +0000
committerArx Cruz <arxcruz@redhat.com>2017-04-04 15:48:51 +0200
commit3b64d05e8a1aae1581d2bec7288d80ac4699e1b1 (patch)
tree8275c68d1f053b78647307d94f1923ab781f826a /src/zenity.ui
parentBug 762347: Addition of entry text width option (diff)
downloadzenity-3b64d05e8a1aae1581d2bec7288d80ac4699e1b1.tar.gz
zenity-3b64d05e8a1aae1581d2bec7288d80ac4699e1b1.tar.bz2
zenity-3b64d05e8a1aae1581d2bec7288d80ac4699e1b1.zip
Fix message dialog width and height on recent Gtk
The fix for Zenity bug 670496 "Zenity info/error windows grow in height with message length" (https://bugzilla.gnome.org/show_bug.cgi?id=670496) stopped working on recent Gtk, which doesn't seem to honor gtk_widget_set_size_request. This commit workarounds Gtk bug 657621 "Calculate the wrong height of labels wrapping on words" (https://bugzilla.gnome.org/show_bug.cgi?id=657621) by setting label's width-chars and max-width-chars to 60. This magic number was picked from GtkMessageDialog source (https://git.gnome.org/browse/gtk+/tree/gtk/ui/gtkmessagedialog.ui#n48).
Diffstat (limited to 'src/zenity.ui')
-rw-r--r--src/zenity.ui8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zenity.ui b/src/zenity.ui
index 07915d34..13594422 100644
--- a/src/zenity.ui
+++ b/src/zenity.ui
@@ -518,8 +518,8 @@
<property name="icon_size">6</property>
</object>
<packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
@@ -729,8 +729,8 @@
<property name="icon_size">6</property>
</object>
<packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
bgstack15