summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/calendar.c2
-rw-r--r--src/entry.c2
-rw-r--r--src/fileselection.c2
-rw-r--r--src/msg.c2
-rw-r--r--src/notification.c2
-rw-r--r--src/progress.c2
-rw-r--r--src/scale.c2
-rw-r--r--src/text.c2
-rw-r--r--src/tree.c2
9 files changed, 9 insertions, 9 deletions
diff --git a/src/calendar.c b/src/calendar.c
index 8ad53ea6..9aaee9f2 100644
--- a/src/calendar.c
+++ b/src/calendar.c
@@ -85,7 +85,7 @@ zenity_calendar (ZenityData *data, ZenityCalendarData *cal_data)
zenity_util_show_dialog (dialog);
if(data->timeout_delay > 0) {
- g_timeout_add (data->timeout_delay * 1000, (GSourceFunc) zenity_util_timeout_handle, NULL);
+ g_timeout_add_seconds (data->timeout_delay, (GSourceFunc) zenity_util_timeout_handle, NULL);
}
g_object_unref (builder);
diff --git a/src/entry.c b/src/entry.c
index 8826e92b..ca53caf2 100644
--- a/src/entry.c
+++ b/src/entry.c
@@ -129,7 +129,7 @@ zenity_entry (ZenityData *data, ZenityEntryData *entry_data)
zenity_util_show_dialog (dialog);
if(data->timeout_delay > 0) {
- g_timeout_add (data->timeout_delay * 1000, (GSourceFunc) zenity_util_timeout_handle, NULL);
+ g_timeout_add_seconds (data->timeout_delay, (GSourceFunc) zenity_util_timeout_handle, NULL);
}
gtk_main ();
diff --git a/src/fileselection.c b/src/fileselection.c
index dd4ab0d3..026bb310 100644
--- a/src/fileselection.c
+++ b/src/fileselection.c
@@ -136,7 +136,7 @@ void zenity_fileselection (ZenityData *data, ZenityFileData *file_data)
zenity_util_show_dialog (dialog);
if(data->timeout_delay > 0) {
- g_timeout_add (data->timeout_delay * 1000, (GSourceFunc) zenity_util_timeout_handle, NULL);
+ g_timeout_add_seconds (data->timeout_delay, (GSourceFunc) zenity_util_timeout_handle, NULL);
}
gtk_main ();
diff --git a/src/msg.c b/src/msg.c
index fd92289c..1a92875b 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -138,7 +138,7 @@ zenity_msg (ZenityData *data, ZenityMsgData *msg_data)
zenity_util_show_dialog (dialog);
if(data->timeout_delay > 0) {
- g_timeout_add (data->timeout_delay * 1000, (GSourceFunc) zenity_util_timeout_handle, NULL);
+ g_timeout_add_seconds (data->timeout_delay, (GSourceFunc) zenity_util_timeout_handle, NULL);
}
g_object_unref (builder);
diff --git a/src/notification.c b/src/notification.c
index 674eaec9..99a2e36a 100644
--- a/src/notification.c
+++ b/src/notification.c
@@ -292,7 +292,7 @@ zenity_notification (ZenityData *data, ZenityNotificationData *notification_data
gtk_status_icon_set_visible (status_icon, TRUE);
if(data->timeout_delay > 0) {
- g_timeout_add (data->timeout_delay * 1000, (GSourceFunc) zenity_util_timeout_handle, NULL);
+ g_timeout_add_seconds (data->timeout_delay, (GSourceFunc) zenity_util_timeout_handle, NULL);
}
gtk_main ();
diff --git a/src/progress.c b/src/progress.c
index 40f91821..4f1f55ef 100644
--- a/src/progress.c
+++ b/src/progress.c
@@ -286,7 +286,7 @@ zenity_progress (ZenityData *data, ZenityProgressData *progress_data)
zenity_progress_read_info (progress_data);
if(data->timeout_delay > 0) {
- g_timeout_add (data->timeout_delay * 1000, (GSourceFunc) zenity_util_timeout_handle, NULL);
+ g_timeout_add_seconds (data->timeout_delay, (GSourceFunc) zenity_util_timeout_handle, NULL);
}
gtk_main ();
diff --git a/src/scale.c b/src/scale.c
index 86787742..c0d25d12 100644
--- a/src/scale.c
+++ b/src/scale.c
@@ -92,7 +92,7 @@ zenity_scale (ZenityData *data, ZenityScaleData *scale_data)
zenity_util_show_dialog (dialog);
if(data->timeout_delay > 0) {
- g_timeout_add (data->timeout_delay * 1000, (GSourceFunc) zenity_util_timeout_handle, NULL);
+ g_timeout_add_seconds (data->timeout_delay, (GSourceFunc) zenity_util_timeout_handle, NULL);
}
g_object_unref (builder);
diff --git a/src/text.c b/src/text.c
index 25bd7688..eb5f989b 100644
--- a/src/text.c
+++ b/src/text.c
@@ -152,7 +152,7 @@ zenity_text (ZenityData *data, ZenityTextData *text_data)
g_object_unref (builder);
if(data->timeout_delay > 0) {
- g_timeout_add (data->timeout_delay * 1000, (GSourceFunc) zenity_util_timeout_handle, NULL);
+ g_timeout_add_seconds (data->timeout_delay, (GSourceFunc) zenity_util_timeout_handle, NULL);
}
gtk_main ();
diff --git a/src/tree.c b/src/tree.c
index 63287e36..3861e863 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -499,7 +499,7 @@ zenity_tree (ZenityData *data, ZenityTreeData *tree_data)
zenity_util_show_dialog (dialog);
if(data->timeout_delay > 0) {
- g_timeout_add (data->timeout_delay * 1000, (GSourceFunc) zenity_util_timeout_handle, NULL);
+ g_timeout_add_seconds (data->timeout_delay, (GSourceFunc) zenity_util_timeout_handle, NULL);
}
gtk_main ();
bgstack15