[nautilus/wip/ernestask/gtk4-continued: 66/175] general: Drop arguments to gtk_init()



commit 0f2238b88f9d9b03da9dd42c7c7da1b83d2201b7
Author: Ernestas Kulik <ernestask gnome org>
Date:   Mon Jul 2 10:15:58 2018 +0300

    general: Drop arguments to gtk_init()

 eel/check-program.c                                     | 3 +--
 src/nautilus-application.c                              | 2 +-
 src/nautilus-autorun-software.c                         | 2 +-
 test/automated/display/test-nautilus-mime-actions-set.c | 2 +-
 test/automated/display/test-nautilus-mime-actions.c     | 2 +-
 test/interactive/test.c                                 | 2 +-
 6 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/eel/check-program.c b/eel/check-program.c
index 1e0f0a382..04cbc7de6 100644
--- a/eel/check-program.c
+++ b/eel/check-program.c
@@ -40,8 +40,7 @@ main (int   argc,
 
 
     LIBXML_TEST_VERSION
-    gtk_init (&argc,
-              &argv);
+    gtk_init ();
 
     /* Run the checks for eel twice. */
 
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 2d73d08f8..0810ce7be 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -632,7 +632,7 @@ static int
 do_perform_self_checks (void)
 {
 #ifndef NAUTILUS_OMIT_SELF_CHECK
-    gtk_init (NULL, NULL);
+    gtk_init ();
 
     nautilus_profile_start (NULL);
     /* Run the checks (each twice) for nautilus and libnautilus-private. */
diff --git a/src/nautilus-autorun-software.c b/src/nautilus-autorun-software.c
index af153ae7e..20c034af0 100644
--- a/src/nautilus-autorun-software.c
+++ b/src/nautilus-autorun-software.c
@@ -280,7 +280,7 @@ main (int   argc,
     bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
     textdomain (GETTEXT_PACKAGE);
 
-    gtk_init (&argc, &argv);
+    gtk_init ();
 
     if (argc != 2)
     {
diff --git a/test/automated/display/test-nautilus-mime-actions-set.c 
b/test/automated/display/test-nautilus-mime-actions-set.c
index a08f817d6..8e5662396 100644
--- a/test/automated/display/test-nautilus-mime-actions-set.c
+++ b/test/automated/display/test-nautilus-mime-actions-set.c
@@ -118,7 +118,7 @@ main (int    argc,
     NautilusFile *file;
     NautilusFileAttributes attributes;
 
-    gtk_init (&argc, &argv);
+    gtk_init ();
 
     if (argc < 3)
     {
diff --git a/test/automated/display/test-nautilus-mime-actions.c 
b/test/automated/display/test-nautilus-mime-actions.c
index 38e140fd6..8f85d4ec7 100644
--- a/test/automated/display/test-nautilus-mime-actions.c
+++ b/test/automated/display/test-nautilus-mime-actions.c
@@ -112,7 +112,7 @@ main (int    argc,
     NautilusFile *file;
     NautilusFileAttributes attributes;
 
-    gtk_init (&argc, &argv);
+    gtk_init ();
 
     if (argc != 2)
     {
diff --git a/test/interactive/test.c b/test/interactive/test.c
index 43e8fbc43..69af05921 100644
--- a/test/interactive/test.c
+++ b/test/interactive/test.c
@@ -6,7 +6,7 @@ void
 test_init (int    *argc,
            char ***argv)
 {
-    gtk_init (argc, argv);
+    gtk_init ();
 
     eel_make_warnings_and_criticals_stop_in_debugger ();
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]