summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArx Cruz <arxcruz@gnome.org>2014-10-21 16:05:31 +0200
committerArx Cruz <arxcruz@gnome.org>2014-10-21 16:06:23 +0200
commit6ac663ea05f00aa42d2aa620968e26e525487201 (patch)
treeb5676c1ab88992c5530a16376d301399d86cb54b /src
parentUpdated Brazilian Portuguese translation (diff)
downloadzenity-6ac663ea05f00aa42d2aa620968e26e525487201.tar.gz
zenity-6ac663ea05f00aa42d2aa620968e26e525487201.tar.bz2
zenity-6ac663ea05f00aa42d2aa620968e26e525487201.zip
Fixing remain g_timeout_add
Finish switch g_timeout_add for g_timeout_add_seconds
Diffstat (limited to 'src')
-rw-r--r--src/color.c6
-rw-r--r--src/password.c6
-rw-r--r--src/progress.c6
3 files changed, 9 insertions, 9 deletions
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);
}
}
bgstack15