Bug 579999 – zenity sets a huge but finite timeout

Declare timeout delay as signed, so that assigning -1 does not act as
setting a huge (but finite) timeout (this has been noticed by resetting
the clock)
This commit is contained in:
Olivier Blin 2009-04-23 19:55:12 +02:00 committed by Lucas Rocha
parent 94190df420
commit 62a1292d1e
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ static gboolean zenity_general_multiple;
static gboolean zenity_general_editable; static gboolean zenity_general_editable;
static gchar *zenity_general_uri; static gchar *zenity_general_uri;
static gboolean zenity_general_dialog_no_wrap; static gboolean zenity_general_dialog_no_wrap;
static guint zenity_general_timeout_delay; static gint zenity_general_timeout_delay;
/* Calendar Dialog Options */ /* Calendar Dialog Options */
static gboolean zenity_calendar_active; static gboolean zenity_calendar_active;

View File

@ -29,7 +29,7 @@ typedef struct {
gint width; gint width;
gint height; gint height;
gint exit_code; gint exit_code;
guint timeout_delay; gint timeout_delay;
} ZenityData; } ZenityData;
typedef enum { typedef enum {