[zenity] Fixing g_timeout_add calls
- From: Arx Henrique Pereira da Cruz <arxcruz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [zenity] Fixing g_timeout_add calls
- Date: Tue, 21 Oct 2014 14:32:31 +0000 (UTC)
commit b44b2fb33dac0618e355f8cd5c46be0b3d13eadc
Author: Arx Cruz <arxcruz gnome org>
Date: Tue Oct 21 16:32:14 2014 +0200
Fixing g_timeout_add calls
src/color.c | 2 +-
src/password.c | 2 +-
src/progress.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/color.c b/src/color.c
index 633e342..e3b8a42 100644
--- a/src/color.c
+++ b/src/color.c
@@ -82,7 +82,7 @@ void zenity_colorselection (ZenityData *data, ZenityColorData *color_data)
zenity_util_show_dialog (dialog, data->attach);
if (data->timeout_delay > 0) {
- g_timeout_add_seconds (data->timeout_delay * 1000,
+ g_timeout_add_seconds (data->timeout_delay,
(GSourceFunc) zenity_util_timeout_handle,
dialog);
}
diff --git a/src/password.c b/src/password.c
index a6dceda..ff254fd 100644
--- a/src/password.c
+++ b/src/password.c
@@ -152,7 +152,7 @@ void zenity_password_dialog (ZenityData *data, ZenityPasswordData *password_data
zenity_util_show_dialog (dialog, data->attach);
if (data->timeout_delay > 0) {
- g_timeout_add_seconds (data->timeout_delay * 1000,
+ g_timeout_add_seconds (data->timeout_delay,
(GSourceFunc) zenity_util_timeout_handle,
dialog);
}
diff --git a/src/progress.c b/src/progress.c
index 1963f16..185da2f 100644
--- a/src/progress.c
+++ b/src/progress.c
@@ -67,7 +67,7 @@ static void
zenity_progress_pulsate_start (GObject *progress_bar)
{
if (pulsate_timeout == -1) {
- pulsate_timeout = g_timeout_add_seconds (100,
+ pulsate_timeout = g_timeout_add (100,
zenity_progress_pulsate_progress_bar,
progress_bar);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]