summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-12-12 18:13:11 +0300
committermonsta <[email protected]>2016-12-12 18:13:11 +0300
commit0c051115caa2f9bb0f3598a0cd2cf47a97ec1a09 (patch)
tree5330f6a5abb32cd4d4aedf4f4ae735220e9bdb22
parentcbbe1c090d92f2aac7b356ac15f569c6b86bda77 (diff)
downloadpluma-0c051115caa2f9bb0f3598a0cd2cf47a97ec1a09.tar.bz2
pluma-0c051115caa2f9bb0f3598a0cd2cf47a97ec1a09.tar.xz
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
-rw-r--r--pluma/pluma.c4
1 files changed, 1 insertions, 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"),