[nautilus/gtk3-happyness: 16/20] [libnautilus-private] use eel_canvas_item_destroy



commit 7c4ae1ab0578ea3a4dc57b42a265793583777109
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Sep 29 14:22:13 2010 +0200

    [libnautilus-private] use eel_canvas_item_destroy
    
    Instead of gtk_object_destroy()

 libnautilus-private/nautilus-icon-container.c |    4 ++--
 libnautilus-private/nautilus-icon-dnd.c       |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c
index 8df697a..365c11a 100644
--- a/libnautilus-private/nautilus-icon-container.c
+++ b/libnautilus-private/nautilus-icon-container.c
@@ -294,7 +294,7 @@ static void
 icon_free (NautilusIcon *icon)
 {
 	/* Destroy this canvas item; the parent will unref it. */
-	gtk_object_destroy (GTK_OBJECT (icon->item));
+	eel_canvas_item_destroy (EEL_CANVAS_ITEM (icon->item));
 	g_free (icon);
 }
 
@@ -2745,7 +2745,7 @@ stop_rubberbanding (NautilusIconContainer *container,
 
 	/* Destroy this canvas item; the parent will unref it. */
 	eel_canvas_item_ungrab (band_info->selection_rectangle, time);
-	gtk_object_destroy (GTK_OBJECT (band_info->selection_rectangle));
+	eel_canvas_item_destroy (band_info->selection_rectangle);
 	band_info->selection_rectangle = NULL;
 
 	/* if only one item has been selected, use it as range
diff --git a/libnautilus-private/nautilus-icon-dnd.c b/libnautilus-private/nautilus-icon-dnd.c
index 7ae13fa..b2dfc41 100644
--- a/libnautilus-private/nautilus-icon-dnd.c
+++ b/libnautilus-private/nautilus-icon-dnd.c
@@ -358,7 +358,7 @@ nautilus_icon_container_dropped_icon_feedback (GtkWidget *widget,
 	if (dnd_info->shadow != NULL) {
 		/* FIXME bugzilla.gnome.org 42484: 
 		 * Is a destroy really sufficient here? Who does the unref? */
-		gtk_object_destroy (GTK_OBJECT (dnd_info->shadow));
+		eel_canvas_item_destroy (dnd_info->shadow);
 	}
 
 	/* Build the selection list and the shadow. */
@@ -1240,7 +1240,7 @@ nautilus_icon_container_free_drag_data (NautilusIconContainer *container)
 	dnd_info->drag_info.got_drop_data_type = FALSE;
 
 	if (dnd_info->shadow != NULL) {
-		gtk_object_destroy (GTK_OBJECT (dnd_info->shadow));
+		eel_canvas_item_destroy (dnd_info->shadow);
 		dnd_info->shadow = NULL;
 	}
 



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