[nautilus-actions] Duplicated object inherits same attributes that the original
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Duplicated object inherits same attributes that the original
- Date: Wed, 28 Oct 2009 23:59:48 +0000 (UTC)
commit bf7dcb2d8648fd013cd7716b7369e001a58391c1
Author: Pierre Wieser <pwieser trychlos org>
Date: Wed Oct 28 21:27:15 2009 +0100
Duplicated object inherits same attributes that the original
ChangeLog | 3 +++
src/runtime/na-iduplicable.c | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7d6fca5..cbf3058 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2009-10-28 Pierre Wieser <pwieser trychlos org>
+ * src/runtime/na-iduplicable.c (na_iduplicable_duplicate):
+ Duplicated object inherits same attributes that the original.
+
* src/nact/nact-iactions-list.c (do_insert_items):
Take a copy before reverting the list, and free the copy at end.
diff --git a/src/runtime/na-iduplicable.c b/src/runtime/na-iduplicable.c
index 5f3c4df..7b64c2c 100644
--- a/src/runtime/na-iduplicable.c
+++ b/src/runtime/na-iduplicable.c
@@ -348,8 +348,8 @@ na_iduplicable_duplicate( const NAIDuplicable *object )
if( dup ){
v_copy( dup, object );
set_origin( dup, object );
- set_modified( dup, FALSE );
- set_valid( dup, TRUE );
+ set_modified( dup, get_modified( object ));
+ set_valid( dup, get_valid( object ));
}
return( dup );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]