summaryrefslogtreecommitdiff
path: root/shell/cc-application.c
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2015-07-08 18:04:41 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2015-07-16 11:49:34 +0200
commitc84722248e41946fd995cff3ce773f9b80b2f4d7 (patch)
treedca61963907f34aa274c76f186b33dc8c4cbb2bc /shell/cc-application.c
parent7ce6ce68073488601053099b25b1fc29e86d7380 (diff)
downloadgnome-control-center-c84722248e41946fd995cff3ce773f9b80b2f4d7.tar.gz
shell: Revert "Let panels have their own commandline flags"
This reverts commit 31a8a99440cce715b2e32ca71a6cbf650eab012a. This was meant for bgo#695885 which has stalled for a while, so this feature has no in-tree user. This commit removes it for now, this can be readded when users for it materialize. https://bugzilla.gnome.org/show_bug.cgi?id=751597
Diffstat (limited to 'shell/cc-application.c')
-rw-r--r--shell/cc-application.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/shell/cc-application.c b/shell/cc-application.c
index e64b15475..936f902bc 100644
--- a/shell/cc-application.c
+++ b/shell/cc-application.c
@@ -131,22 +131,18 @@ cc_application_command_line (GApplication *application,
int retval = 0;
GOptionContext *context;
GError *error = NULL;
- GVariantBuilder *flags_builder;
verbose = FALSE;
show_overview = FALSE;
show_help = FALSE;
start_panels = NULL;
- flags_builder = g_variant_builder_new (G_VARIANT_TYPE_VARDICT);
-
argv = g_application_command_line_get_arguments (command_line, &argc);
context = g_option_context_new (N_("- Settings"));
g_option_context_add_main_entries (context, all_options, GETTEXT_PACKAGE);
g_option_context_set_translation_domain(context, GETTEXT_PACKAGE);
g_option_context_add_group (context, gtk_get_option_group (TRUE));
- cc_panel_loader_add_option_groups (context, flags_builder);
g_option_context_set_help_enabled (context, FALSE);
start_panels = NULL;
@@ -231,8 +227,6 @@ cc_application_command_line (GApplication *application,
g_debug ("No extra argument");
builder = g_variant_builder_new (G_VARIANT_TYPE ("av"));
- g_variant_builder_add (builder, "v", g_variant_builder_end (flags_builder));
-
for (i = 1; start_panels[i] != NULL; i++)
g_variant_builder_add (builder, "v", g_variant_new_string (start_panels[i]));
parameters = g_variant_builder_end (builder);