[gedit-collaboration] Override gedit interface properties (app, window)



commit 3cd3309238730b0c35f7c44b5b621ed1f30a55be
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Sun Jan 9 16:03:46 2011 +0100

    Override gedit interface properties (app, window)

 src/gedit-collaboration-plugin.c        |    8 +-------
 src/gedit-collaboration-window-helper.c |    8 +-------
 2 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/src/gedit-collaboration-plugin.c b/src/gedit-collaboration-plugin.c
index 9fe5642..f384cc0 100644
--- a/src/gedit-collaboration-plugin.c
+++ b/src/gedit-collaboration-plugin.c
@@ -257,13 +257,7 @@ gedit_collaboration_plugin_class_init (GeditCollaborationPluginClass *klass)
 
 	g_type_class_add_private (object_class, sizeof(GeditCollaborationPluginPrivate));
 
-	g_object_class_install_property (object_class,
-	                                 PROP_APP,
-	                                 g_param_spec_object ("app",
-	                                                      "App",
-	                                                      "App",
-	                                                      GEDIT_TYPE_APP,
-	                                                      G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+	g_object_class_override_property (object_class, PROP_APP, "app");
 }
 
 static void
diff --git a/src/gedit-collaboration-window-helper.c b/src/gedit-collaboration-window-helper.c
index 76c7372..3c14634 100644
--- a/src/gedit-collaboration-window-helper.c
+++ b/src/gedit-collaboration-window-helper.c
@@ -1640,13 +1640,7 @@ gedit_collaboration_window_helper_class_init (GeditCollaborationWindowHelperClas
 	object_class->get_property = gedit_collaboration_window_helper_get_property;
 	object_class->constructor = gedit_collaboration_window_helper_constructor;
 
-	g_object_class_install_property (object_class,
-	                                 PROP_WINDOW,
-	                                 g_param_spec_object ("window",
-	                                                      "Window",
-	                                                      "The gedit window",
-	                                                      GEDIT_TYPE_WINDOW,
-	                                                      G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+	g_object_class_override_property (object_class, PROP_WINDOW, "window");
 
 	g_type_class_add_private (object_class, sizeof(GeditCollaborationWindowHelperPrivate));
 }



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