diff options
author | Lucas Rocha <lucasr@gnome.org> | 2007-08-13 20:36:29 +0000 |
---|---|---|
committer | Lucas Almeida Rocha <lucasr@src.gnome.org> | 2007-08-13 20:36:29 +0000 |
commit | 8b16d4d4122e6337517ec16b9ca22dd27df0dafb (patch) | |
tree | 4b37fe6193f44fef74d114e8c7eeeef7ab82ac4d /src/scale.c | |
parent | fix critical warning when using checkbox and radiobox in list dialog (diff) | |
download | zenity-8b16d4d4122e6337517ec16b9ca22dd27df0dafb.tar.gz zenity-8b16d4d4122e6337517ec16b9ca22dd27df0dafb.tar.bz2 zenity-8b16d4d4122e6337517ec16b9ca22dd27df0dafb.zip |
added timeout option to all dialogs (Fixes bug #160654). Based on patch
2007-08-13 Lucas Rocha <lucasr@gnome.org>
* src/*.c: added timeout option to all dialogs (Fixes bug #160654).
Based on patch from Muthiah Annamalai <gnumuthu@users.sf.net>.
svn path=/trunk/; revision=1231
Diffstat (limited to 'src/scale.c')
-rw-r--r-- | src/scale.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/scale.c b/src/scale.c index cacb083a..91b0ef5f 100644 --- a/src/scale.c +++ b/src/scale.c @@ -93,6 +93,11 @@ zenity_scale (ZenityData *data, ZenityScaleData *scale_data) gtk_scale_set_draw_value (GTK_SCALE (scale), FALSE); zenity_util_show_dialog (dialog); + + if(data->timeout_delay > 0) { + g_timeout_add (data->timeout_delay * 1000, (GSourceFunc) zenity_util_timeout_handle, NULL); + } + gtk_main (); } |