Fixing g_timeout_add calls

This commit is contained in:
Arx Cruz 2014-10-21 16:32:14 +02:00
parent 6ac663ea05
commit b44b2fb33d
3 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}