Fixing remain g_timeout_add
Finish switch g_timeout_add for g_timeout_add_seconds
This commit is contained in:
parent
294f6c459c
commit
6ac663ea05
@ -82,9 +82,9 @@ void zenity_colorselection (ZenityData *data, ZenityColorData *color_data)
|
|||||||
zenity_util_show_dialog (dialog, data->attach);
|
zenity_util_show_dialog (dialog, data->attach);
|
||||||
|
|
||||||
if (data->timeout_delay > 0) {
|
if (data->timeout_delay > 0) {
|
||||||
g_timeout_add (data->timeout_delay * 1000,
|
g_timeout_add_seconds (data->timeout_delay * 1000,
|
||||||
(GSourceFunc) zenity_util_timeout_handle,
|
(GSourceFunc) zenity_util_timeout_handle,
|
||||||
dialog);
|
dialog);
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_main();
|
gtk_main();
|
||||||
|
@ -152,9 +152,9 @@ void zenity_password_dialog (ZenityData *data, ZenityPasswordData *password_data
|
|||||||
zenity_util_show_dialog (dialog, data->attach);
|
zenity_util_show_dialog (dialog, data->attach);
|
||||||
|
|
||||||
if (data->timeout_delay > 0) {
|
if (data->timeout_delay > 0) {
|
||||||
g_timeout_add (data->timeout_delay * 1000,
|
g_timeout_add_seconds (data->timeout_delay * 1000,
|
||||||
(GSourceFunc) zenity_util_timeout_handle,
|
(GSourceFunc) zenity_util_timeout_handle,
|
||||||
dialog);
|
dialog);
|
||||||
}
|
}
|
||||||
gtk_main();
|
gtk_main();
|
||||||
}
|
}
|
||||||
|
@ -67,9 +67,9 @@ static void
|
|||||||
zenity_progress_pulsate_start (GObject *progress_bar)
|
zenity_progress_pulsate_start (GObject *progress_bar)
|
||||||
{
|
{
|
||||||
if (pulsate_timeout == -1) {
|
if (pulsate_timeout == -1) {
|
||||||
pulsate_timeout = g_timeout_add (100,
|
pulsate_timeout = g_timeout_add_seconds (100,
|
||||||
zenity_progress_pulsate_progress_bar,
|
zenity_progress_pulsate_progress_bar,
|
||||||
progress_bar);
|
progress_bar);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user