[nautilus-actions] Remove surreferencing when attaching a profile to an action
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Remove surreferencing when attaching a profile to an action
- Date: Sat, 26 Sep 2009 22:49:16 +0000 (UTC)
commit 044cb32d3fd6fd8fac744530b15f58478936427d
Author: Pierre Wieser <pwieser trychlos org>
Date: Tue Sep 22 23:23:56 2009 +0200
Remove surreferencing when attaching a profile to an action
ChangeLog | 3 +++
src/common/na-iduplicable.h | 2 +-
src/common/na-object-item.c | 11 +++++++----
3 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5231847..963b10f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -32,6 +32,9 @@
Add a sibling pointer.
na_object_item_free_items(): Only unref if object is always valid.
object_are_equal(): Position is a factor of equality.
+ Remove g_object_ref() from na_object_item_insert_item() and
+ na_object_item_append_item().
+ Remove g_object_unref() from na_object_item_remove_item().
* src/common/na-pivot.c:
* src/common/na-pivot.h (na_pivot_get_item): New function.
diff --git a/src/common/na-iduplicable.h b/src/common/na-iduplicable.h
index 7260a13..12c99a7 100644
--- a/src/common/na-iduplicable.h
+++ b/src/common/na-iduplicable.h
@@ -145,7 +145,7 @@ typedef struct {
#define NA_IDUPLICABLE_SIGNAL_MODIFIED_CHANGED "na-iduplicable-modified-changed"
#define NA_IDUPLICABLE_SIGNAL_VALID_CHANGED "na-iduplicable-valid-changed"
-#define NA_IDUPLICABLE_EDITION_STATUS_DEBUG 1
+#define NA_IDUPLICABLE_EDITION_STATUS_DEBUG 0
GType na_iduplicable_get_type( void );
diff --git a/src/common/na-object-item.c b/src/common/na-object-item.c
index fd1546e..c7c69bd 100644
--- a/src/common/na-object-item.c
+++ b/src/common/na-object-item.c
@@ -715,7 +715,8 @@ na_object_item_append_item( NAObjectItem *item, const NAObject *object )
g_return_if_fail( NA_IS_OBJECT( object ));
if( !g_list_find( item->private->items, ( gpointer ) object )){
- item->private->items = g_list_append( item->private->items, g_object_ref(( gpointer ) object ));
+ /*item->private->items = g_list_append( item->private->items, g_object_ref(( gpointer ) object ));*/
+ item->private->items = g_list_append( item->private->items, ( gpointer ) object );
}
}
@@ -742,9 +743,11 @@ na_object_item_insert_item( NAObjectItem *item, const NAObject *object, const NA
if( !g_list_find( item->private->items, ( gpointer ) object )){
before_list = g_list_find( item->private->items, ( gconstpointer ) before );
if( before_list ){
- item->private->items = g_list_insert_before( item->private->items, before_list, g_object_ref(( gpointer ) object ));
+ /*item->private->items = g_list_insert_before( item->private->items, before_list, g_object_ref(( gpointer ) object ));*/
+ item->private->items = g_list_insert_before( item->private->items, before_list, ( gpointer ) object );
} else {
- item->private->items = g_list_prepend( item->private->items, g_object_ref(( gpointer ) object ));
+ /*item->private->items = g_list_prepend( item->private->items, g_object_ref(( gpointer ) object ));*/
+ item->private->items = g_list_prepend( item->private->items, ( gpointer ) object );
}
}
}
@@ -767,7 +770,7 @@ na_object_item_remove_item( NAObjectItem *item, const NAObject *object )
if( g_list_find( item->private->items, ( gconstpointer ) object )){
item->private->items = g_list_remove( item->private->items, ( gconstpointer ) object );
- g_object_unref(( gpointer ) object );
+ /*g_object_unref(( gpointer ) object );*/
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]