[nautilus/wip/ernestask/gtk4-continued: 150/272] general: Drop arguments to gtk_init()
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/ernestask/gtk4-continued: 150/272] general: Drop arguments to gtk_init()
- Date: Sat, 29 Jun 2019 13:14:41 +0000 (UTC)
commit 6f5ffb658a1b5e4e45bbb30cfda1de9a16ade771
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 f44e52b76..d9945e802 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 732ec2d52..6cb62cbbb 100644
--- a/src/nautilus-autorun-software.c
+++ b/src/nautilus-autorun-software.c
@@ -245,7 +245,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]