[nautilus/wip/antoniof/experimental-gtk4-build: 9/52] general: Drop gtk_init () arguments




commit ad5a97d41e97c856f3826d88d23bbe6c44450864
Author: António Fernandes <antoniof gnome org>
Date:   Fri Dec 17 15:56:41 2021 +0000

    general: Drop gtk_init () arguments
    
    As per porting guide.

 eel/check-program.c                                      | 3 +--
 extensions/audio-video-properties/test-properties-page.c | 2 +-
 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 +-
 7 files changed, 7 insertions(+), 8 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/extensions/audio-video-properties/test-properties-page.c 
b/extensions/audio-video-properties/test-properties-page.c
index 21be43a34..b099c5da5 100644
--- a/extensions/audio-video-properties/test-properties-page.c
+++ b/extensions/audio-video-properties/test-properties-page.c
@@ -58,7 +58,7 @@ int main (int argc, char **argv)
 
        totem_gst_disable_display_decoders ();
        gst_init (&argc, &argv);
-       gtk_init (&argc, &argv);
+       gtk_init ();
 
        if (argc != 2) {
                g_print ("Usage: %s [URI]\n", argv[0]);
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 210c8eb5b..f7b0061b2 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -634,7 +634,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 0496be5b5..91fb0ccc0 100644
--- a/src/nautilus-autorun-software.c
+++ b/src/nautilus-autorun-software.c
@@ -252,7 +252,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 11e9ddc0d..9d364b69c 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 a6818adbc..052e9c719 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 34a5fa8c4..0f1662e02 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]