[nautilus-actions] Menu plugin no more uses deprecated na_pivot_set_automatic_reload()



commit c6ae674a296f19b6eff1141ee8a46f758714744b
Author: Pierre Wieser <pwieser trychlos org>
Date:   Mon Jan 10 21:44:24 2011 +0100

    Menu plugin no more uses deprecated na_pivot_set_automatic_reload()

 ChangeLog                          |    1 +
 src/plugin-menu/nautilus-actions.c |   22 +++++++++++-----------
 2 files changed, 12 insertions(+), 11 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e352ca8..d80fec1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -37,6 +37,7 @@
 
 	* src/plugin-menu/nautilus-actions.c:
 	Implement runtime preferences monitoring.
+	No more use deprecated na_pivot_set_automatic_reload().
 
 	* src/core/na-pivot.c:
 	* src/core/na-pivot.h:
diff --git a/src/plugin-menu/nautilus-actions.c b/src/plugin-menu/nautilus-actions.c
index 3a0eb53..508ced1 100644
--- a/src/plugin-menu/nautilus-actions.c
+++ b/src/plugin-menu/nautilus-actions.c
@@ -57,16 +57,6 @@ struct NautilusActionsClassPrivate {
 };
 
 /* private instance data
- *
- * Runtime modification management:
- * We have to react to some runtime environment modifications:
- *
- * - whether the items list has changed (we have to reload a new pivot)
- *   > registering for notifications against NAPivot
- *
- * - whether to add the 'About Nautilus-Actions' item
- * - whether to create a 'Nautilus-Actions actions' root menu
- *   > registering for notifications against NASettings
  */
 struct NautilusActionsPrivate {
 	gboolean dispose_has_run;
@@ -207,6 +197,17 @@ instance_init( GTypeInstance *instance, gpointer klass )
 	self->private->dispose_has_run = FALSE;
 }
 
+/*
+ * Runtime modification management:
+ * We have to react to some runtime environment modifications:
+ *
+ * - whether the items list has changed (we have to reload a new pivot)
+ *   > registering for notifications against NAPivot
+ *
+ * - whether to add the 'About Nautilus-Actions' item
+ * - whether to create a 'Nautilus-Actions actions' root menu
+ *   > registering for notifications against NASettings
+ */
 static void
 instance_constructed( GObject *object )
 {
@@ -225,7 +226,6 @@ instance_constructed( GObject *object )
 
 		/* setup NAPivot properties before loading items
 		 */
-		na_pivot_set_automatic_reload( self->private->pivot, TRUE );
 		na_pivot_set_loadable( self->private->pivot, !PIVOT_LOAD_DISABLED & !PIVOT_LOAD_INVALID );
 		na_pivot_load_items( self->private->pivot );
 



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