From 6ac663ea05f00aa42d2aa620968e26e525487201 Mon Sep 17 00:00:00 2001 From: Arx Cruz Date: Tue, 21 Oct 2014 16:05:31 +0200 Subject: Fixing remain g_timeout_add Finish switch g_timeout_add for g_timeout_add_seconds --- src/color.c | 6 +++--- src/password.c | 6 +++--- src/progress.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/color.c b/src/color.c index b6a6b121..633e3427 100644 --- a/src/color.c +++ b/src/color.c @@ -82,9 +82,9 @@ void zenity_colorselection (ZenityData *data, ZenityColorData *color_data) zenity_util_show_dialog (dialog, data->attach); if (data->timeout_delay > 0) { - g_timeout_add (data->timeout_delay * 1000, - (GSourceFunc) zenity_util_timeout_handle, - dialog); + g_timeout_add_seconds (data->timeout_delay * 1000, + (GSourceFunc) zenity_util_timeout_handle, + dialog); } gtk_main(); diff --git a/src/password.c b/src/password.c index 84cca21e..a6dceda2 100644 --- a/src/password.c +++ b/src/password.c @@ -152,9 +152,9 @@ void zenity_password_dialog (ZenityData *data, ZenityPasswordData *password_data zenity_util_show_dialog (dialog, data->attach); if (data->timeout_delay > 0) { - g_timeout_add (data->timeout_delay * 1000, - (GSourceFunc) zenity_util_timeout_handle, - dialog); + g_timeout_add_seconds (data->timeout_delay * 1000, + (GSourceFunc) zenity_util_timeout_handle, + dialog); } gtk_main(); } diff --git a/src/progress.c b/src/progress.c index 00544873..1963f16e 100644 --- a/src/progress.c +++ b/src/progress.c @@ -67,9 +67,9 @@ static void zenity_progress_pulsate_start (GObject *progress_bar) { if (pulsate_timeout == -1) { - pulsate_timeout = g_timeout_add (100, - zenity_progress_pulsate_progress_bar, - progress_bar); + pulsate_timeout = g_timeout_add_seconds (100, + zenity_progress_pulsate_progress_bar, + progress_bar); } } -- cgit