After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 686604 - ok button outside of visible range
ok button outside of visible range
Status: RESOLVED OBSOLETE
Product: zenity
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Zenity Maintainers
Zenity Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-10-22 06:23 UTC by Daniel Preston
Modified: 2015-05-29 12:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Preston 2012-10-22 06:23:54 UTC
Depending on the supplied text, sometimes the ok button is outside of the visible range. The following example below will demonstrate the bug.

I found a workaround adding an extra line "----------------------------------------------------------------------", but it would be nice if the bug could get fixed nonetheless.



#!/bin/bash

#######
# Bug #
#######

VAR="\
Tor Browser Update Check Result:

Looks like your Tor Browser version is up to date.

Please close Tor Browser if you want to upgrade!
Currently installed version: 2.2.39-3
Online detected version    : 2.2.39-3

If your currently installed version is:
   higher: you are likely victim of a downgrade attack, SAY NO NOW!
   equal : only proceed, if you want to create a new browser profile.
   lower : you should upgrade.

YOUR BROWSER WILL BE KILLED.
YOUR WHOLE BROWSER PROFILE INCLUDING BOOKMARKS AND PASSWORDS WILL GET
REPLACED!

A backup of your old Tor Browser and settings will be created in your
home folder.
It is a good idea to delete old TBB backups once in a while if you are
running low with disk space."

zenity --info --text "$VAR"

##########
# No Bug #
##########

VAR="\
Tor Browser Update Check Result:
----------------------------------------------------------------------

Looks like your Tor Browser version is up to date.

Please close Tor Browser if you want to upgrade!
Currently installed version: 2.2.39-3
Online detected version    : 2.2.39-3

If your currently installed version is:
   higher: you are likely victim of a downgrade attack, SAY NO NOW!
   equal : only proceed, if you want to create a new browser profile.
   lower : you should upgrade.

YOUR BROWSER WILL BE KILLED.
YOUR WHOLE BROWSER PROFILE INCLUDING BOOKMARKS AND PASSWORDS WILL GET
REPLACED!

A backup of your old Tor Browser and settings will be created in your
home folder.
It is a good idea to delete old TBB backups once in a while if you are
running low with disk space."

zenity --info --text "$VAR"
Comment 1 Vinicius Silva 2013-10-02 01:39:06 UTC
Hey Daniel,

I think it has something to do with the way GTK handles the "--info" option, and *maybe* it's one of the reasons the "--no-wrap" option was added.

In order to fix the problem, try adding "--no-wrap" at the end of the following line:
zenity --info --text "$VAR"
Comment 2 Arx Cruz 2015-05-29 12:52:07 UTC
Hello,

Can you check with latest version? I think this was solved.

I'm closing this, please feel free to reopen if you think it's necessary.