summaryrefslogtreecommitdiff
path: root/shell/cc-application.c
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2015-06-20 21:04:12 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2015-07-16 11:51:07 +0200
commita70172cfeacd1037e3b1d43431cd10b8084dbf6d (patch)
treee2ed18e07d2d53e5be677817749091e9898c0660 /shell/cc-application.c
parent3f586c4a95720f97ba58cb9f29484e93f232494a (diff)
downloadgnome-control-center-a70172cfeacd1037e3b1d43431cd10b8084dbf6d.tar.gz
shell: Move cheese_gtk_init() call earlier
Now that we handle local command line arguments, the 'command_line' vfunc can no longer get the initial argc/argv passed to the process. Now, cheese_gtk_init() is called unconditionally from main() where argc/argv are available. https://bugzilla.gnome.org/show_bug.cgi?id=751597
Diffstat (limited to 'shell/cc-application.c')
-rw-r--r--shell/cc-application.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/shell/cc-application.c b/shell/cc-application.c
index 26221ce9b..bedf4c16b 100644
--- a/shell/cc-application.c
+++ b/shell/cc-application.c
@@ -34,10 +34,6 @@
#include <clutter-gtk/clutter-gtk.h>
#endif /* HAVE_CHEESE || HAVE_WACOM */
-#ifdef HAVE_CHEESE
-#include <cheese-gtk.h>
-#endif /* HAVE_CHEESE */
-
struct _CcApplicationPrivate
{
CcWindow *window;
@@ -131,21 +127,14 @@ cc_application_command_line (GApplication *application,
GApplicationCommandLine *command_line)
{
CcApplication *self = CC_APPLICATION (application);
- int argc;
- char **argv;
GVariantDict *options;
int retval = 0;
char *search_str;
GStrv start_panels = NULL;
gboolean debug;
- argv = g_application_command_line_get_arguments (command_line, &argc);
options = g_application_command_line_get_options_dict (command_line);
-#ifdef HAVE_CHEESE
- cheese_gtk_init (&argc, &argv);
-#endif /* HAVE_CHEESE */
-
debug = g_variant_dict_contains (options, "verbose");
cc_shell_log_set_debug (debug);
@@ -196,8 +185,6 @@ cc_application_command_line (GApplication *application,
g_free (start_panels);
start_panels = NULL;
- g_strfreev (argv);
-
return retval;
}