[nautilus-actions] Deprecate na_object_set_modified(), na_iduplicable_set_modified()



commit 6cfa7a74ce00ca894e3d71dafb0a1b2be9e65c1b
Author: Pierre Wieser <pwieser trychlos org>
Date:   Wed Feb 16 21:41:54 2011 +0100

    Deprecate na_object_set_modified(), na_iduplicable_set_modified()

 ChangeLog                 |    6 ++++++
 src/api/na-iduplicable.h  |    5 ++++-
 src/api/na-object-api.h   |    5 ++++-
 src/core/na-iduplicable.c |    2 ++
 4 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d9f0a37..7ea65a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-02-16 Pierre Wieser <pwieser trychlos org>
 
+	* src/api/na-object-api.h (na_object_set_modified): Deprecated macro.
+
+	* src/api/na-iduplicable.h:
+	* src/core/na-iduplicable.c (na_iduplicable_set_modified):
+	Deprecated function.
+
 	* src/core/na-factory-object.c (na_factory_object_are_equal):
 	* src/nact/nact-tree-ieditable.c (on_object_modified_status_changed):
 	Improve debug messages.
diff --git a/src/api/na-iduplicable.h b/src/api/na-iduplicable.h
index 034674b..1204ae9 100644
--- a/src/api/na-iduplicable.h
+++ b/src/api/na-iduplicable.h
@@ -199,10 +199,13 @@ gboolean       na_iduplicable_is_valid    ( const NAIDuplicable *object );
 gboolean       na_iduplicable_is_modified ( const NAIDuplicable *object );
 
 void           na_iduplicable_set_origin  ( NAIDuplicable *object, const NAIDuplicable *origin );
-void           na_iduplicable_set_modified( NAIDuplicable *object, gboolean modified );
 
 void           na_iduplicable_register_consumer( GObject *consumer );
 
+#ifndef NA_DISABLE_DEPRECATED
+void           na_iduplicable_set_modified( NAIDuplicable *object, gboolean modified );
+#endif
+
 G_END_DECLS
 
 #endif /* __NAUTILUS_ACTIONS_API_NA_IDUPLICABLE_H__ */
diff --git a/src/api/na-object-api.h b/src/api/na-object-api.h
index 57d21ac..dc8999c 100644
--- a/src/api/na-object-api.h
+++ b/src/api/na-object-api.h
@@ -62,7 +62,6 @@ G_BEGIN_DECLS
 #define na_object_is_modified( obj )                    na_iduplicable_is_modified( NA_IDUPLICABLE( obj ))
 
 #define na_object_set_origin( obj, origin )             na_iduplicable_set_origin( NA_IDUPLICABLE( obj ), ( NAIDuplicable * )( origin ))
-#define na_object_set_modified( obj, modified )         na_iduplicable_set_modified( NA_IDUPLICABLE( obj ), ( modified ))
 #define na_object_reset_origin( obj, origin )           na_object_object_reset_origin( NA_OBJECT( obj ), ( NAObject * )( origin ))
 
 /* NAObject
@@ -220,6 +219,10 @@ G_BEGIN_DECLS
 #define na_object_set_selection_count( obj, cond )      na_ifactory_object_set_from_void( NA_IFACTORY_OBJECT( obj ), NAFO_DATA_SELECTION_COUNT, ( const void * )( cond ))
 #define na_object_set_capabilities( obj, cap )          na_ifactory_object_set_from_void( NA_IFACTORY_OBJECT( obj ), NAFO_DATA_CAPABILITITES, ( const void * )( cap ))
 
+#ifndef NA_DISABLE_DEPRECATED
+#define na_object_set_modified( obj, modified )         na_iduplicable_set_modified( NA_IDUPLICABLE( obj ), ( modified ))
+#endif
+
 G_END_DECLS
 
 #endif /* __NAUTILUS_ACTIONS_API_NA_OBJECT_API_H__ */
diff --git a/src/core/na-iduplicable.c b/src/core/na-iduplicable.c
index 838fd62..c53a941 100644
--- a/src/core/na-iduplicable.c
+++ b/src/core/na-iduplicable.c
@@ -520,6 +520,8 @@ na_iduplicable_set_origin( NAIDuplicable *object, const NAIDuplicable *origin )
  * Sets the new modified of a duplicated #NAIDuplicable.
  *
  * Since: 2.30
+ *
+ * Deprecated: 3.1.0
  */
 void
 na_iduplicable_set_modified( NAIDuplicable *object, gboolean modified )



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