[nautilus-actions] Reset provider and read-only flag when pasting a new object
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Reset provider and read-only flag when pasting a new object
- Date: Mon, 7 Dec 2009 21:21:28 +0000 (UTC)
commit 2380466f790ef220c0031d4cc36a2f4ab90833f2
Author: Pierre Wieser <pwieser trychlos org>
Date: Mon Dec 7 21:50:15 2009 +0100
Reset provider and read-only flag when pasting a new object
ChangeLog | 4 ++++
TODO | 2 --
nautilus-actions/private/na-object-id.c | 2 ++
3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c6f104f..07b8a5a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2009-12-07 Pierre Wieser <pwieser trychlos org>
+ * nautilus-actions/private/na-object-id.c
+ (na_object_id_prepare_for_paste):
+ Reset provider and read-only flag when pasting a new object.
+
* nautilus-actions/nact/nact-main-menubar.c (prepare_for_paste):
Recheck status of pasted items.
diff --git a/TODO b/TODO
index 960557c..d61de50 100644
--- a/TODO
+++ b/TODO
@@ -97,6 +97,4 @@
- nact: new action assistant
-- nact: when pasting an item, should reset provider and read-only flag
-
- desktop provider: fix default toolbar label
diff --git a/nautilus-actions/private/na-object-id.c b/nautilus-actions/private/na-object-id.c
index 9e303be..d93d9a7 100644
--- a/nautilus-actions/private/na-object-id.c
+++ b/nautilus-actions/private/na-object-id.c
@@ -544,6 +544,8 @@ na_object_id_prepare_for_paste( NAObjectId *object, gboolean relabel, gboolean r
if( relabel ){
na_object_set_copy_of_label( object );
}
+ na_object_set_provider( object, NULL );
+ na_object_set_readonly( object, FALSE );
}
if( NA_IS_OBJECT_MENU( object )){
subitems = na_object_get_items_list( object );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]