GNOME Bugzilla – Bug 702535
List box doesn't expand to fill window
Last modified: 2013-10-25 03:41:42 UTC
Try downloading repostory on a debian/ubuntu system and run it. Notice how the list doesn't fill up the window - it remains at the height of a single entry. Adding this line at line 1024 in /usr/share/zenity/zenity.ui seems to fix it for me, although I don't know if it is the "correct" way of fixing it or not: <property name="expand">True</property>
I didn't understand what you mean, can you please provide an example?
I did :-) "repostory" is not a typo: http://ubuntuforums.org/showthread.php?t=1593718 Download that and try it.
Oh, gotcha! I will fix it :)
Hi gentlemen, This looks to me as a "working as designed". Mainly because it's hardcoded on line 166 of the repostory script, the author clearly passes a "--width 800" parameter.
(In reply to comment #0) > Try downloading repostory on a debian/ubuntu system and run it. Notice how the > list doesn't fill up the window - it remains at the height of a single entry. > > Adding this line at line 1024 in /usr/share/zenity/zenity.ui seems to fix it > for me, although I don't know if it is the "correct" way of fixing it or not: > <property name="expand">True</property> Bug is still present in 3.10, and occurs other than in the repostory script. I can confirm that that fix to the code solves the problem for me on the repostory AND other unrelated scripts. (In reply to comment #4) > Hi gentlemen, > > This looks to me as a "working as designed". Mainly because it's hardcoded on > line 166 of the repostory script, the author clearly passes a "--width 800" > parameter. Removing that from the script does not resolve the problem for me, and it is the height rather than width of the list box that is not filling the dialogue as it should.
Created attachment 256939 [details] Zenity running repostory Unfortunatelly I coudln't add this change in 3.10 due code freeze. However I still didn't understand what you want. Are you talking about the empty space? (Image attached)
Created attachment 256940 [details] zenity single line error with repostory No, the problem is as per the original description. Single line rather than the list box expanding to fill the dialogue. Note that the hard coded window size restraints have been removed from the script for that example, and the result is exactly the same problem. Makes no difference.
Created attachment 256941 [details] fixed as per previous suggestion And attached there the result when applying the suggested fix to /usr/share/zenity/zenity.ui
Same problem reported here I think? https://bugs.launchpad.net/ubuntu/+source/zenity/+bug/1192101
Oh, NOW I understand! Sorry, english isn't my main language, so sometimes it take a while to understand. So, without this option, you can't resize the window for a size, lower than the line, and even if you set the width, the list force the window to keep the size of one single line. Yes, that's odd, and I will fix it and it will be available in next zenity version.
Done. https://git.gnome.org/browse/zenity/commit/?id=80bc8ce643979fec201c4ebd5cd6405b6310357f Thanks for help zenity get better :)
*** Bug 710537 has been marked as a duplicate of this bug. ***