[libwnck/wip/muktupavels/gtk4] test-selector: don't pass commandline arguments to gtk_init



commit 145f1f33b61f997ad688fcb49e1e48be92523274
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun May 21 02:41:31 2017 +0300

    test-selector: don't pass commandline arguments to gtk_init

 libwnck/test-selector.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libwnck/test-selector.c b/libwnck/test-selector.c
index fb27ea3..1c155a8 100644
--- a/libwnck/test-selector.c
+++ b/libwnck/test-selector.c
@@ -23,12 +23,11 @@ main (int argc, char **argv)
 
   ctxt = g_option_context_new ("");
   g_option_context_add_main_entries (ctxt, entries, NULL);
-  g_option_context_add_group (ctxt, gtk_get_option_group (TRUE));
   g_option_context_parse (ctxt, &argc, &argv, NULL);
   g_option_context_free (ctxt);
   ctxt = NULL;
 
-  gtk_init (&argc, &argv);
+  gtk_init ();
 
   screen = wnck_screen_get_default ();
 


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