user-accounts: Fix crash when built with cheese support
The cheese support needs clutter, GStreamer and clutter-gst initialised. Call cheese_gtk_init() for that. https://bugzilla.gnome.org/show_bug.cgi?id=690760
This commit is contained in:
parent
7e8f97760c
commit
45d4944b6d
1 changed files with 8 additions and 0 deletions
|
@ -35,6 +35,10 @@
|
|||
#include <X11/Xlib.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CHEESE
|
||||
#include <cheese-gtk.h>
|
||||
#endif /* HAVE_CHEESE */
|
||||
|
||||
#include "cc-shell-log.h"
|
||||
|
||||
G_GNUC_NORETURN static gboolean
|
||||
|
@ -117,6 +121,10 @@ application_command_line_cb (GApplication *application,
|
|||
|
||||
g_option_context_free (context);
|
||||
|
||||
#ifdef HAVE_CHEESE
|
||||
cheese_gtk_init (&argc, &argv);
|
||||
#endif /* HAVE_CHEESE */
|
||||
|
||||
cc_shell_log_set_debug (verbose);
|
||||
|
||||
gnome_control_center_show (shell, GTK_APPLICATION (application));
|
||||
|
|
Loading…
Add table
Reference in a new issue