[nautilus/wip/antoniof/gtk4-preparation-drop-outgoing-api: 3/23] general: Stop using gtk_main_iteration()
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/gtk4-preparation-drop-outgoing-api: 3/23] general: Stop using gtk_main_iteration()
- Date: Sun, 15 Aug 2021 20:14:33 +0000 (UTC)
commit 34746da51d80f2d9b994b1f8a2bec9c0ba65e20a
Author: António Fernandes <antoniof gnome org>
Date: Sun Aug 15 15:50:49 2021 +0100
general: Stop using gtk_main_iteration()
It's going away with GTK4. Use the recomended replacement.
src/nautilus-directory.c | 4 ++--
test/automated/display/test-nautilus-mime-actions-set.c | 2 +-
test/automated/display/test-nautilus-mime-actions.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/nautilus-directory.c b/src/nautilus-directory.c
index f54ad5aac..311e9e812 100644
--- a/src/nautilus-directory.c
+++ b/src/nautilus-directory.c
@@ -2030,7 +2030,7 @@ nautilus_self_check_directory (void)
while (g_hash_table_size (directories) != 0)
{
- 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)
while (!got_files_flag)
{
- gtk_main_iteration ();
+ g_main_context_iteration (NULL, TRUE);
}
EEL_CHECK_BOOLEAN_RESULT (directory->details->file_list == NULL, TRUE);
diff --git a/test/automated/display/test-nautilus-mime-actions-set.c
b/test/automated/display/test-nautilus-mime-actions-set.c
index a08f817d6..11e9ddc0d 100644
--- a/test/automated/display/test-nautilus-mime-actions-set.c
+++ b/test/automated/display/test-nautilus-mime-actions-set.c
@@ -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)
diff --git a/test/automated/display/test-nautilus-mime-actions.c
b/test/automated/display/test-nautilus-mime-actions.c
index 38e140fd6..a6818adbc 100644
--- a/test/automated/display/test-nautilus-mime-actions.c
+++ b/test/automated/display/test-nautilus-mime-actions.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]