From 3b64d05e8a1aae1581d2bec7288d80ac4699e1b1 Mon Sep 17 00:00:00 2001 From: Alan Date: Sat, 18 Mar 2017 10:24:47 +0000 Subject: 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). --- src/zenity.ui | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/zenity.ui') 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 @@ 6 - True - True + False + False 0 @@ -729,8 +729,8 @@ 6 - True - True + False + False 0 -- cgit