diff options
author | Darin Adler <darin@src.gnome.org> | 2000-10-18 00:19:24 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2000-10-18 00:19:24 +0000 |
commit | 2da5fbafdf1a86fb20158f7aa8f5013a24e83721 (patch) | |
tree | 44f4059ba6c73138f50ae3d428bd3077ff1d39fe /libnautilus-private/nautilus-icon-container.c | |
parent | bff45faaab386a4768acd20e300a09a27a9349f2 (diff) | |
download | nautilus-2da5fbafdf1a86fb20158f7aa8f5013a24e83721.tar.gz |
Oops. Canvas items are not widgets, although they ref. count in a similar
* libnautilus-extensions/nautilus-icon-container.c: (icon_free),
(stop_rubberbanding), (destroy): Oops. Canvas items are not
widgets, although they ref. count in a similar way.
Diffstat (limited to 'libnautilus-private/nautilus-icon-container.c')
-rw-r--r-- | libnautilus-private/nautilus-icon-container.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c index faa56ac6d..6b49bd7ef 100644 --- a/libnautilus-private/nautilus-icon-container.c +++ b/libnautilus-private/nautilus-icon-container.c @@ -171,7 +171,7 @@ static void icon_free (NautilusIcon *icon) { /* Destroy this canvas item; the parent will unref it. */ - gtk_widget_destroy (GTK_WIDGET (icon->item)); + gtk_object_destroy (GTK_OBJECT (icon->item)); g_free (icon); } @@ -1380,7 +1380,7 @@ stop_rubberbanding (NautilusIconContainer *container, /* Destroy this canvas item; the parent will unref it. */ gnome_canvas_item_ungrab (band_info->selection_rectangle, event->time); - gtk_widget_destroy (GTK_WIDGET (band_info->selection_rectangle)); + gtk_object_destroy (GTK_OBJECT (band_info->selection_rectangle)); band_info->selection_rectangle = NULL; @@ -2067,7 +2067,7 @@ destroy (GtkObject *object) } if (container->details->rubberband_info.selection_rectangle != NULL) { /* Destroy this canvas item; the parent will unref it. */ - gtk_widget_destroy (GTK_WIDGET (container->details->rubberband_info.selection_rectangle)); + gtk_object_destroy (GTK_OBJECT (container->details->rubberband_info.selection_rectangle)); } if (container->details->idle_id != 0) { |