[gnome-todo/wip/gbsneto/plugins: 30/62] application: call base ::startup before actual code
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo/wip/gbsneto/plugins: 30/62] application: call base ::startup before actual code
- Date: Fri, 15 Jan 2016 01:05:42 +0000 (UTC)
commit b83fdf5d894d677cb630723126c5a2cb8a162373
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun Dec 27 21:54:02 2015 -0200
application: call base ::startup before actual code
GtkApplication::startup run gtk_init(), which is a
requirement to load plugins since they might be running
Gtk+ code.
This commit fix a crash on EDS plugin.
src/gtd-application.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gtd-application.c b/src/gtd-application.c
index 43acf3e..1de11ef 100644
--- a/src/gtd-application.c
+++ b/src/gtd-application.c
@@ -240,6 +240,8 @@ gtd_application_startup (GApplication *application)
{
GtdApplicationPrivate *priv = GTD_APPLICATION (application)->priv;
+ G_APPLICATION_CLASS (gtd_application_parent_class)->startup (application);
+
/* manager */
priv->manager = gtd_manager_get_default ();
@@ -251,8 +253,6 @@ gtd_application_startup (GApplication *application)
gtd_application_entries,
G_N_ELEMENTS (gtd_application_entries),
application);
-
- G_APPLICATION_CLASS (gtd_application_parent_class)->startup (application);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]