[gedit/wip/gtkapp: 10/14] Override startup in win32 implementation



commit e8c4a53ed6421555441e57323d8420b16b5326d0
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Nov 19 14:20:25 2012 +0100

    Override startup in win32 implementation

 gedit/gedit-app-win32.c |   34 ++++++++++++++++++++++------------
 1 files changed, 22 insertions(+), 12 deletions(-)
---
diff --git a/gedit/gedit-app-win32.c b/gedit/gedit-app-win32.c
index 64d4a20..f57b5b1 100644
--- a/gedit/gedit-app-win32.c
+++ b/gedit/gedit-app-win32.c
@@ -57,17 +57,6 @@ gedit_app_win32_help_link_id_impl (GeditApp    *app,
 }
 
 static void
-gedit_app_win32_class_init (GeditAppWin32Class *klass)
-{
-	GObjectClass *object_class = G_OBJECT_CLASS (klass);
-	GeditAppClass *app_class = GEDIT_APP_CLASS (klass);
-
-	object_class->finalize = gedit_app_win32_finalize;
-
-	app_class->help_link_id = gedit_app_win32_help_link_id_impl;
-}
-
-static void
 setup_path (void)
 {
 	gchar *path;
@@ -119,8 +108,10 @@ prep_console (void)
 }
 
 static void
-gedit_app_win32_init (GeditAppWin32 *self)
+gedit_app_win32_startup (GApplication *application)
 {
+	G_APPLICATION_CLASS (gedit_app_win32_parent_class)->startup (application);
+
 	setup_path ();
 	prep_console ();
 
@@ -129,4 +120,23 @@ gedit_app_win32_init (GeditAppWin32 *self)
 	gtk_window_set_default_icon_name ("accessories-text-editor");
 }
 
+static void
+gedit_app_win32_class_init (GeditAppWin32Class *klass)
+{
+	GObjectClass *object_class = G_OBJECT_CLASS (klass);
+	GApplicationClass *gapp_class = G_APPLICATION_CLASS (klass);
+	GeditAppClass *app_class = GEDIT_APP_CLASS (klass);
+
+	object_class->finalize = gedit_app_win32_finalize;
+
+	gapp_class->startup = gedit_app_win32_startup;
+
+	app_class->help_link_id = gedit_app_win32_help_link_id_impl;
+}
+
+static void
+gedit_app_win32_init (GeditAppWin32 *self)
+{
+}
+
 /* ex:set ts=8 noet: */



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