From 62a1292d1ea8b611b539ab2cc5dc4dfe479225d8 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 23 Apr 2009 19:55:12 +0200 Subject: Bug 579999 – zenity sets a huge but finite timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- src/option.c | 2 +- src/zenity.h | 2 +- 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 { -- cgit