diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2010-09-29 14:22:13 +0200 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2010-09-30 18:48:43 +0200 |
commit | f5192b6990cd9240d126974dd587b7b7525ae714 (patch) | |
tree | 90169b48379fb32f54b95ba82ca78004a9971aff | |
parent | 910191ea13e5647e1b8c793e7585530c6ae4c9b1 (diff) | |
download | nautilus-f5192b6990cd9240d126974dd587b7b7525ae714.tar.gz |
[libnautilus-private] use eel_canvas_item_destroy
Instead of gtk_object_destroy()
-rw-r--r-- | libnautilus-private/nautilus-icon-container.c | 4 | ||||
-rw-r--r-- | 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 8df697abc..365c11a60 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 7ae13fa36..b2dfc41f2 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; } |