[nautilus-actions] Do not rewrite data which is already marked writable
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Do not rewrite data which is already marked writable
- Date: Tue, 16 Mar 2010 21:38:01 +0000 (UTC)
commit da92231e38cfdd3bd6d3b9eb4f7707ef552023ff
Author: Pierre Wieser <pwieser trychlos org>
Date: Mon Mar 15 07:18:49 2010 +0100
Do not rewrite data which is already marked writable
ChangeLog | 3 +++
src/io-xml/naxml-writer.c | 10 ----------
2 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 289dda1..c513bc7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2009-03-15 Pierre Wieser <pwieser trychlos org>
+ * src/io-xml/naxml-writer.c (naxml_writer_write_start):
+ No need to explicitely write item type as the data is marked writable.
+
* src/utils/nautilus-actions-new.c:
Cleanup old command-line code.
Check for incompatibility between boolean arguments.
diff --git a/src/io-xml/naxml-writer.c b/src/io-xml/naxml-writer.c
index 2b73db2..f39f40c 100644
--- a/src/io-xml/naxml-writer.c
+++ b/src/io-xml/naxml-writer.c
@@ -388,16 +388,6 @@ naxml_writer_write_start( const NAIFactoryProvider *provider, void *writer_data,
if( NA_IS_OBJECT_ITEM( object )){
na_object_dump( object );
-
- boxed = na_ifactory_object_get_data_boxed( object, NAFO_DATA_TYPE );
-
- if( boxed ){
- writer = NAXML_WRITER( writer_data );
- ( *writer->private->fn_str->write_data_fn )( writer, NA_OBJECT_ID( object ), boxed );
-
- } else {
- g_warning( "%s: unable to get %s databox", thisfn, NAFO_DATA_TYPE );
- }
}
return( NA_IIO_PROVIDER_CODE_OK );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]