1
0
mirror of https://gitlab.gnome.org/GNOME/nautilus synced 2024-07-04 17:30:47 +00:00

general: Stop using gtk_main_iteration()

It's going away with GTK4. Use the recomended replacement.
This commit is contained in:
António Fernandes 2021-08-15 15:50:49 +01:00 committed by Ondrej Holy
parent 67baf819d2
commit 37740f0d72
3 changed files with 4 additions and 4 deletions

View File

@ -2030,7 +2030,7 @@ nautilus_self_check_directory (void)
for (guint i = 0; g_hash_table_size (directories) != 0 && i < 100000; i++)
{
gtk_main_iteration ();
g_main_context_iteration (NULL, TRUE);
}
EEL_CHECK_INTEGER_RESULT (g_hash_table_size (directories), 0);
@ -2047,7 +2047,7 @@ nautilus_self_check_directory (void)
for (guint i = 0; !got_files_flag && i < 100000; i++)
{
gtk_main_iteration ();
g_main_context_iteration (NULL, TRUE);
}
EEL_CHECK_BOOLEAN_RESULT (got_files_flag, TRUE);

View File

@ -136,7 +136,7 @@ main (int argc,
while (!ready)
{
gtk_main_iteration ();
g_main_context_iteration (NULL, TRUE);
}
if (strcmp (field, "default_action_type") == 0)

View File

@ -128,7 +128,7 @@ main (int argc,
while (!ready)
{
gtk_main_iteration ();
g_main_context_iteration (NULL, TRUE);
}
default_application = nautilus_mime_get_default_application_for_file (file);