[nautilus/gtk3-breakage: 13/19] application: make sure to initialize GTK+ during _startup()



commit 5684156b801735cf1baf0144166d7601ad7a2f0f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Oct 27 14:44:35 2010 +0200

    application: make sure to initialize GTK+ during _startup()

 src/nautilus-application.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index fdaeb71..0bf7fdb 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -1617,6 +1617,11 @@ nautilus_application_startup (GApplication *app)
 {
 	NautilusApplication *self = NAUTILUS_APPLICATION (app);
 
+	/* chain up to the GTK+ implementation early, so gtk_init()
+	 * is called for us.
+	 */
+	G_APPLICATION_CLASS (nautilus_application_parent_class)->startup (app);
+
 	/* create an undo manager */
 	self->undo_manager = nautilus_undo_manager_new ();
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]