[nautilus-actions] Set object id when reading an item



commit 430b9dac2f35ec02b4085754ed82ff8cb7fab7bd
Author: Pierre Wieser <pwieser trychlos org>
Date:   Tue Dec 1 23:42:47 2009 +0100

    Set object id when reading an item

 ChangeLog                                        |    1 +
 TODO                                             |    5 ++---
 nautilus-actions/io-provider-desktop/nadp-read.c |    1 +
 3 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2875a5c..cf008e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
 	* nautilus-actions/io-provider-desktop/nadp-read.c
 	(action_from_desktop_path): Have at least one profile for the action.
+	(read_item_properties): Set object id.
 
 	* nautilus-actions/io-provider-desktop/nadp-desktop-file.c
 	(check_key_file): Fix check of required keys.
diff --git a/TODO b/TODO
index 4888f16..3dd132c 100644
--- a/TODO
+++ b/TODO
@@ -95,9 +95,8 @@
 
 - may we have a read-only menu ?
   this implies dnd of an action inside of the menu would be forbidden
+  id. for reordering if subitems
 
 - nact: if item is read-only, all fields should be disabled
 
-- nact: creation assistant
-
-- toolbar label: if not set, initialize to item label
+- nact: new action assistant
diff --git a/nautilus-actions/io-provider-desktop/nadp-read.c b/nautilus-actions/io-provider-desktop/nadp-read.c
index 895a7c3..244a61c 100644
--- a/nautilus-actions/io-provider-desktop/nadp-read.c
+++ b/nautilus-actions/io-provider-desktop/nadp-read.c
@@ -249,6 +249,7 @@ read_item_properties( const NadpDesktopProvider *provider, NAObjectItem *item, N
 	gboolean writable;
 
 	id = nadp_desktop_file_get_id( ndf );
+	na_object_set_id( item, id );
 
 	label = ( gchar * ) nadp_desktop_file_get_label( ndf );
 	if( !label || !g_utf8_strlen( label, -1 )){



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