summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Blin <blino@mandriva.com>2009-04-23 19:55:12 +0200
committerLucas Rocha <lucasr@gnome.org>2009-08-08 10:47:55 +0100
commit62a1292d1ea8b611b539ab2cc5dc4dfe479225d8 (patch)
treed2da1faef276c8b6f20332a8e3356f07b5b95490
parentBug 567773 – "zenity --entry --text" doesn't interpret line breaks (diff)
downloadzenity-62a1292d1ea8b611b539ab2cc5dc4dfe479225d8.tar.gz
zenity-62a1292d1ea8b611b539ab2cc5dc4dfe479225d8.tar.bz2
zenity-62a1292d1ea8b611b539ab2cc5dc4dfe479225d8.zip
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)
-rw-r--r--src/option.c2
-rw-r--r--src/zenity.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/option.c b/src/option.c
index c7a8b35e..93a09a21 100644
--- a/src/option.c
+++ b/src/option.c
@@ -40,7 +40,7 @@ static gboolean zenity_general_multiple;
static gboolean zenity_general_editable;
static gchar *zenity_general_uri;
static gboolean zenity_general_dialog_no_wrap;
-static guint zenity_general_timeout_delay;
+static gint zenity_general_timeout_delay;
/* Calendar Dialog Options */
static gboolean zenity_calendar_active;
diff --git a/src/zenity.h b/src/zenity.h
index 511ee84d..3248ad37 100644
--- a/src/zenity.h
+++ b/src/zenity.h
@@ -29,7 +29,7 @@ typedef struct {
gint width;
gint height;
gint exit_code;
- guint timeout_delay;
+ gint timeout_delay;
} ZenityData;
typedef enum {
bgstack15