[cheese] lib: Don't forget to call gtk_clutter_init()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] lib: Don't forget to call gtk_clutter_init()
- Date: Fri, 18 Mar 2011 14:50:21 +0000 (UTC)
commit 1a71d7fd4d2d09711833792a365d4923b853b5ec
Author: Bastien Nocera <hadess hadess net>
Date: Fri Mar 18 14:37:40 2011 +0000
lib: Don't forget to call gtk_clutter_init()
Note that using this in an application that relies on keyboard
input for GtkClutter widgets will fail horribly.
libcheese/cheese-widget.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libcheese/cheese-widget.c b/libcheese/cheese-widget.c
index b24caae..4f80350 100644
--- a/libcheese/cheese-widget.c
+++ b/libcheese/cheese-widget.c
@@ -20,6 +20,7 @@
#include "cheese-config.h"
#include <glib/gi18n.h>
+#include <clutter-gst/clutter-gst.h>
#include "cheese-widget.h"
#include "cheese-camera.h"
@@ -374,6 +375,9 @@ cheese_widget_class_init (CheeseWidgetClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
+ gtk_clutter_init (NULL, NULL);
+ clutter_gst_init (NULL, NULL);
+
object_class->finalize = cheese_widget_finalize;
#if 0
object_class->set_property = cheese_widget_set_property;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]