[nautilus-actions] new item BriefTreeStoredumpItem in maintainer menu



commit b992523bd122926fff22c6c1895d21ef7d871acd
Author: Pierre Wieser <pwieser trychlos org>
Date:   Fri Oct 9 12:40:48 2009 +0200

    new item BriefTreeStoredumpItem in maintainer menu

 ChangeLog                                     |    5 +++++
 src/nact/nact-iactions-list.c                 |   22 ++++++++++++++++++++++
 src/nact/nact-iactions-list.h                 |    1 +
 src/nact/nact-main-menubar.c                  |    2 +-
 src/nact/nautilus-actions-config-tool.actions |    2 +-
 src/nact/nautilus-actions-maintainer.actions  |    8 +++++---
 6 files changed, 35 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 59a728c..86abdac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,8 +7,13 @@
 	* src/nact-main.c (main):
 	Only display traces from runtime library when in maintainer mode.
 
+	* src/nact/nact-iactions-list.c:
+	* src/nact/nact-iactions-list.h (nact_iactions_list_brief_tree_dump):
+	Briefly dump the tree store content.
+
 	* src/nact/nact-main-menubar.c (nact_main_menubar_runtime_init):
 	Display a Maintainer menu when in maintainer mode.
+	Add BriefTreeStoreDumpItem new item.
 
 	* src/nact/nact-tree-model.c (nact_tree_model_insert):
 	Add debug traces.
diff --git a/src/nact/nact-iactions-list.c b/src/nact/nact-iactions-list.c
index 2d080ec..3bcbcba 100644
--- a/src/nact/nact-iactions-list.c
+++ b/src/nact/nact-iactions-list.c
@@ -506,6 +506,28 @@ nact_iactions_list_dispose( NactIActionsList *instance )
 }
 
 /**
+ * nact_iactions_list_brief_tree_dump:
+ * @instance: this #NactIActionsList implementation.
+ *
+ * Brief dump of the tree store content.
+ */
+void
+nact_iactions_list_brief_tree_dump( NactIActionsList *instance )
+{
+	GtkTreeView *treeview;
+	NactTreeModel *model;
+
+	g_return_if_fail( NACT_IS_IACTIONS_LIST( instance ));
+
+	if( st_initialized && !st_finalized ){
+
+		treeview = get_actions_list_treeview( instance );
+		model = NACT_TREE_MODEL( gtk_tree_view_get_model( treeview ));
+		nact_tree_model_dump( model );
+	}
+}
+
+/**
  * nact_iactions_list_collapse_all:
  * @instance: this #NactIActionsList implementation.
  *
diff --git a/src/nact/nact-iactions-list.h b/src/nact/nact-iactions-list.h
index 558596e..7400ab3 100644
--- a/src/nact/nact-iactions-list.h
+++ b/src/nact/nact-iactions-list.h
@@ -122,6 +122,7 @@ void      nact_iactions_list_runtime_init_toplevel( NactIActionsList *instance,
 void      nact_iactions_list_all_widgets_showed( NactIActionsList *instance );
 void      nact_iactions_list_dispose( NactIActionsList *instance );
 
+void      nact_iactions_list_brief_tree_dump( NactIActionsList *instance );
 void      nact_iactions_list_collapse_all( NactIActionsList *instance );
 void      nact_iactions_list_delete( NactIActionsList *instance, GList *items );
 void      nact_iactions_list_display_order_change( NactIActionsList *instance, gint order_mode );
diff --git a/src/nact/nact-main-menubar.c b/src/nact/nact-main-menubar.c
index 942154c..4117fe6 100644
--- a/src/nact/nact-main-menubar.c
+++ b/src/nact/nact-main-menubar.c
@@ -957,7 +957,7 @@ on_export_activated( GtkAction *gtk_action, NactMainWindow *window )
 static void
 on_brief_tree_store_dump_activated( GtkAction *action, NactMainWindow *window )
 {
-
+	nact_iactions_list_brief_tree_dump( NACT_IACTIONS_LIST( window ));
 }
 
 static void
diff --git a/src/nact/nautilus-actions-config-tool.actions b/src/nact/nautilus-actions-config-tool.actions
index ebfc1f8..3723ba5 100644
--- a/src/nact/nautilus-actions-config-tool.actions
+++ b/src/nact/nautilus-actions-config-tool.actions
@@ -29,7 +29,7 @@
             <menuitem action="ImportItem" />
             <menuitem action="ExportItem" />
         </menu>
-        <placeholder name="MaintainerMenu" />
+        <placeholder name="MaintainerMenuPlace" />
         <menu action="HelpMenu">
             <menuitem action="HelpItem" />
             <separator />
diff --git a/src/nact/nautilus-actions-maintainer.actions b/src/nact/nautilus-actions-maintainer.actions
index ea39fb0..dc221d9 100644
--- a/src/nact/nautilus-actions-maintainer.actions
+++ b/src/nact/nautilus-actions-maintainer.actions
@@ -1,8 +1,10 @@
 <?xml version="1.0"?>
 <ui>
     <menubar name="MainMenubar">
-        <menu action="MaintainerMenu">
-            <menuitem action="BriefTreeStoreDumpItem" />
-        </menu>
+        <placeholder name="MaintainerMenuPlace">
+            <menu action="MaintainerMenu">
+                <menuitem action="BriefTreeStoreDumpItem" />
+            </menu>
+        </placeholder>
     </menubar>
 </ui>



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