[niepce] We must call gtk_clutter_init()
- From: Hubert Figuière <hub src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [niepce] We must call gtk_clutter_init()
- Date: Fri, 5 Jun 2015 03:25:47 +0000 (UTC)
commit f46594d06b80f6e6941edd9c9449b7e1fded3c4c
Author: Hubert Figuière <hub figuiere net>
Date: Thu Jun 4 23:21:44 2015 -0400
We must call gtk_clutter_init()
src/fwk/toolkit/application.cpp | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/fwk/toolkit/application.cpp b/src/fwk/toolkit/application.cpp
index dc76152..b8ac447 100644
--- a/src/fwk/toolkit/application.cpp
+++ b/src/fwk/toolkit/application.cpp
@@ -24,6 +24,7 @@
#include <gtkmm/aboutdialog.h>
#include <gtkmm/settings.h>
#include <cluttermm/init.h>
+#include <clutter-gtk/clutter-gtk.h>
#include "fwk/base/debug.hpp"
#include "fwk/utils/modulemanager.hpp"
@@ -43,6 +44,12 @@ Application::Application(int & argc, char** &argv, const char* app_id,
, m_module_manager(new ModuleManager())
, m_gtkapp(Gtk::Application::create(argc, argv, app_id))
{
+ ClutterInitError error = gtk_clutter_init(&argc, &argv);
+ if (error != CLUTTER_INIT_SUCCESS) {
+ ERR_OUT("clutter init error: %d", (int)error);
+ }
+ // We still need to call Clutter::init() for the wrappers
+ // But after gtk_clutter_init(). Safe to call clutter_init().
Clutter::init(argc, argv);
m_gtkapp->signal_startup().connect(
sigc::mem_fun(*this, &Application::on_startup));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]