[gnome-control-center] Initialize clutter-gst for the user panel
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Initialize clutter-gst for the user panel
- Date: Fri, 13 Jan 2012 18:06:58 +0000 (UTC)
commit 0833ea6de6b0bc9de56e72eb064e7b81f91609d3
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jan 13 13:05:25 2012 -0500
Initialize clutter-gst for the user panel
Otherwise, we get an error out of libcheese, complaining about
gstreamer not being initialized.
configure.ac | 1 +
panels/user-accounts/um-user-module.c | 3 +++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a81dea0..6696050 100644
--- a/configure.ac
+++ b/configure.ac
@@ -117,6 +117,7 @@ PKG_CHECK_MODULES(UNIVERSAL_ACCESS_PANEL, $COMMON_MODULES gsettings-desktop-sche
PKG_CHECK_MODULES(USER_ACCOUNTS_PANEL, $COMMON_MODULES dbus-glib-1
polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION
gnome-desktop-3.0
+ clutter-gst-1.0
gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED_VERSION)
PKG_CHECK_MODULES(WACOM_PANEL, $COMMON_MODULES
gnome-settings-daemon >= $GSD_REQUIRED_VERSION
diff --git a/panels/user-accounts/um-user-module.c b/panels/user-accounts/um-user-module.c
index d96ed40..e1dfaa1 100644
--- a/panels/user-accounts/um-user-module.c
+++ b/panels/user-accounts/um-user-module.c
@@ -23,6 +23,7 @@
#include "um-user-panel.h"
+#include <clutter-gst/clutter-gst.h>
#include <glib/gi18n.h>
void
@@ -31,6 +32,8 @@ g_io_module_load (GIOModule *module)
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ clutter_gst_init (NULL, NULL);
+
/* register the panel */
um_user_panel_register (module);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]