[gtkmm] Application: Add missing gtk_init() call in one of the constructors.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Application: Add missing gtk_init() call in one of the constructors.
- Date: Fri, 20 Sep 2013 11:05:13 +0000 (UTC)
commit 931ca9a52b9f4477094ea19748e26dbba702063b
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Sep 20 12:39:07 2013 +0200
Application: Add missing gtk_init() call in one of the constructors.
* gtk/src/application.ccg: The constructor that took no argc/argv
also needed gtk_init(). This is causing crashes on Fedora.
Presumably gtk_init() was only recently able to take NULL.
gtk/src/application.ccg | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/application.ccg b/gtk/src/application.ccg
index e5c82cc..4498ed8 100644
--- a/gtk/src/application.ccg
+++ b/gtk/src/application.ccg
@@ -72,6 +72,7 @@ Application::Application(const Glib::ustring& application_id, Gio::ApplicationFl
m_argc(0),
m_argv(0)
{
+ gtk_init(0, 0);
}
Application::Application(int& argc, char**& argv, const Glib::ustring& application_id, Gio::ApplicationFlags
flags)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]