From 0c051115caa2f9bb0f3598a0cd2cf47a97ec1a09 Mon Sep 17 00:00:00 2001 From: monsta Date: Mon, 12 Dec 2016 18:13:11 +0300 Subject: fix build without X when introspection is enabled fixes https://github.com/mate-desktop/pluma/issues/207 ported from: https://git.gnome.org/browse/gedit/commit/?id=3b26258325b69c034b486fbdd12aa7d60b379cf6 --- pluma/pluma.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pluma/pluma.c b/pluma/pluma.c index ef05db8c..6f12a051 100644 --- a/pluma/pluma.c +++ b/pluma/pluma.c @@ -523,15 +523,13 @@ main (int argc, char *argv[]) /* Setup command line options */ context = g_option_context_new (_("- Edit text files")); g_option_context_add_main_entries (context, options, GETTEXT_PACKAGE); - g_option_context_add_group (context, gtk_get_option_group (FALSE)); + g_option_context_add_group (context, gtk_get_option_group (TRUE)); g_option_context_add_group (context, egg_sm_client_get_option_group ()); #ifdef HAVE_INTROSPECTION g_option_context_add_group (context, g_irepository_get_option_group ()); #endif - gtk_init (&argc, &argv); - if (!g_option_context_parse (context, &argc, &argv, &error)) { g_print(_("%s\nRun '%s --help' to see a full list of available command line options.\n"), -- cgit v1.2.1