GNOME Bugzilla – Bug 649073
zenity text-info doesn't use available --height
Last modified: 2013-10-17 23:42:13 UTC
Created attachment 186966 [details] screenshot In gnome 3 (fedora 15 beta), the following command: cat /etc/profile | zenity --text-info --height=800 --width=600 Produces a window 600x800, however the text box within it is only 4 rows tall (roughly 120 pixels or so), leaving most of the window area unused. Zenity should use the full height available. Note that it *does* expand to the full width. Screenshot attached
I can confirm this bug on archlinux with the current zenity-3.0.0 package. It sorta breaks zenity for my purposes currently.
Created attachment 187279 [details] screenshot
I can confirm this one too. I'm also using archlinux with zenity-3.0.0. Here is a patch for /usr/share/zenity.ui which fixes this bug diff -rU1 a/zenity.ui b/zenity.ui --- a/zenity.ui 2011-08-13 17:31:23.485389071 +0200 +++ b/zenity.ui 2011-08-13 17:34:05.247325963 +0200 @@ -407,2 +407,3 @@ <packing> + <property name="expand">True</property> <property name="position">1</property>
I mean /usr/share/zenity/zenity.ui of course.
sure. I can confirm that it indeed works.
Can you confirm if with the comment #3 fix the problem?
I can confirm it works also, and (I presume this is because it's been committed?) the current version in fedora 17 did not require me to manually patch it. Marking as resolved.
+1 3.4.0 also works on arch.
Created attachment 257595 [details] Zenity 3.8 with the bug reappeared
Created attachment 257596 [details] zenity 3.8 with the bug patched for --list
I would like to reopen this bug. I just updated Arch Linux and found that my zenity-based radio script was unusable. It was the exact same problem (and solution) as before except that it showed up in --list (--text-info seems to be okay). In English: zenity was using --height to set the total height of the window but leaving a large grey area and making the content tiny and unusable.. I've posted two screenshots, the first showing the problem, and the second showing it fixed after I made this following patch: --- zenity.ui.old 2013-10-17 16:10:57.861792026 -0400 +++ /usr/share/zenity/zenity.ui 2013-10-17 16:13:16.526100892 -0400 @@ -1040,7 +1040,7 @@ </child> </object> <packing> - <property name="expand">False</property> + <property name="expand">True</property> <property name="fill">True</property> <property name="position">1</property> </packing> It seems that this might be a deeper issue, if it can go away for a couple years and then reappear without getting caught by tests.
I will take a look if git/master continue to have this problem, if so, I will apply the patch. Thanks!