[nautilus-actions: 9/19] Cleanup the code, adding documentation for public functions
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Subject: [nautilus-actions: 9/19] Cleanup the code, adding documentation for public functions
- Date: Tue, 9 Jun 2009 16:55:43 -0400 (EDT)
commit 27401ab96b33fc9d89335b6f6f15f88328db6385
Author: Pierre Wieser <pwieser trychlos org>
Date: Tue Jun 9 21:38:29 2009 +0200
Cleanup the code, adding documentation for public functions
---
ChangeLog | 2 ++
src/common/nact-gconf.c | 26 ++++++++++++++++++++------
2 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e1f8211..8c2fc7b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,8 @@
(nact_action_profile_load): Remove function and cleanup the code.
* src/common/nact-gconf.c:
+ Cleanup the code, adding documentation to public functions.
+
* src/common/nact-object.c:
* src/common/nact-object.h:
* src/common/nact-pivot.c:
diff --git a/src/common/nact-gconf.c b/src/common/nact-gconf.c
index e21384b..5c6e3b2 100644
--- a/src/common/nact-gconf.c
+++ b/src/common/nact-gconf.c
@@ -96,12 +96,6 @@ static guint install_gconf_watch( NactGConf *gconf );
static void remove_gconf_watch( NactGConf *gconf );
static void action_changed_cb( GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer user_data );
-NactGConf *
-nact_gconf_new( const GObject *handler )
-{
- return( g_object_new( NACT_GCONF_TYPE, PROP_NOTIFIED_STR, handler, NULL ));
-}
-
GType
nact_gconf_get_type( void )
{
@@ -257,6 +251,23 @@ instance_finalize( GObject *object )
}
}
+/**
+ * Allocate a new GConf object.
+ *
+ * @handler: the GObject which is to be notified when an action is
+ * added, modified or removed in underlying GConf system.
+ *
+ * The object to be notified will receive a
+ * "notify_pivot_of_action_changed" message for each detected
+ * modification, with a pointer to a newly allocated NactPivotNotify
+ * structure describing the change.
+ */
+NactGConf *
+nact_gconf_new( const GObject *handler )
+{
+ return( g_object_new( NACT_GCONF_TYPE, PROP_NOTIFIED_STR, handler, NULL ));
+}
+
/*
* NactIIOProviderInterface implementation
* load the list of actions and returns them as a GSList
@@ -281,7 +292,9 @@ do_load_actions( NactIIOProvider *provider )
gchar *key = path_to_key(( const gchar * ) ip->data );
NactAction *action = nact_action_new( key );
+
load_action_properties( self, action );
+
profiles = load_profiles( self, action );
nact_action_set_profiles( action, profiles );
nact_action_free_profiles( profiles );
@@ -501,6 +514,7 @@ set_item_properties( NactObject *object, GSList *properties )
* key/parm
* key/profile
* key/profile/parm with a null value
+ *
* I don't know any way to choose between key/parm and key/profile
* as the entry no more exists in GConf and thus cannot be tested
* -> we will set this as key/parm, letting pivot try to interpret it
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]