shell: Revert "Let panels have their own commandline flags"
This reverts commit 31a8a99440
.
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
This commit is contained in:
parent
7ce6ce6807
commit
c84722248e
9 changed files with 10 additions and 55 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue