summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-icon-dnd.c
diff options
context:
space:
mode:
authorGene Z. Ragan <gzr@eazel.com>2000-08-17 00:57:49 +0000
committerGene Ragan <gzr@src.gnome.org>2000-08-17 00:57:49 +0000
commit56de1e566a1a0b5e033223f1c3e39131bf93d2fe (patch)
tree79c78b5105fe14b32b2df926f71425e243b4d08f /libnautilus-private/nautilus-icon-dnd.c
parent7bf5da1bd1463df767b6b8f489c5077d557f8929 (diff)
downloadnautilus-56de1e566a1a0b5e033223f1c3e39131bf93d2fe.tar.gz
Fixed bug 2197, moving a file to trash while in renaming mode leaves
2000-08-16 Gene Z. Ragan <gzr@eazel.com> * libnautilus-extensions/nautilus-icon-container.c: (icon_toggle_selected), (icon_destroy), (nautilus_icon_container_remove): Fixed bug 2197, moving a file to trash while in renaming mode leaves renaiming item behind. Call end_renaming_mode in nautilus_icon_container_remove. * libnautilus-extensions/nautilus-icon-dnd.c: (nautilus_icon_container_free_drag_data): Changed gtk_object_unref call to gtk_object_destroy to fix a crash. Hopefully this didn't introduce a memory leak.
Diffstat (limited to 'libnautilus-private/nautilus-icon-dnd.c')
-rw-r--r--libnautilus-private/nautilus-icon-dnd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-icon-dnd.c b/libnautilus-private/nautilus-icon-dnd.c
index 354598efb..158dadc5e 100644
--- a/libnautilus-private/nautilus-icon-dnd.c
+++ b/libnautilus-private/nautilus-icon-dnd.c
@@ -1006,7 +1006,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_unref (GTK_OBJECT (dnd_info->shadow));
+ gtk_object_destroy (GTK_OBJECT (dnd_info->shadow));
dnd_info->shadow = NULL;
}