[zenity] Fixing remain g_timeout_add
- From: Arx Henrique Pereira da Cruz <arxcruz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [zenity] Fixing remain g_timeout_add
- Date: Tue, 21 Oct 2014 14:06:53 +0000 (UTC)
commit 6ac663ea05f00aa42d2aa620968e26e525487201
Author: Arx Cruz <arxcruz gnome org>
Date: Tue Oct 21 16:05:31 2014 +0200
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(-)
---
diff --git a/src/color.c b/src/color.c
index b6a6b12..633e342 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 84cca21..a6dceda 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 0054487..1963f16 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]