[gnome-todo/wip/gbsneto/plugins: 7/10] application: call base ::startup before actual code



commit 7a11231c29bfab956355d11f06084120acb74b54
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]