[nautilus] icon-dnd: use new background API
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] icon-dnd: use new background API
- Date: Sun, 10 Oct 2010 00:56:59 +0000 (UTC)
commit 7e7691f0332a9b708217432a692cdf27e536cbcc
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Oct 10 02:57:02 2010 +0200
icon-dnd: use new background API
libnautilus-private/nautilus-icon-dnd.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-dnd.c b/libnautilus-private/nautilus-icon-dnd.c
index 91bc195..21f90cb 100644
--- a/libnautilus-private/nautilus-icon-dnd.c
+++ b/libnautilus-private/nautilus-icon-dnd.c
@@ -1067,9 +1067,16 @@ nautilus_icon_container_receive_dropped_icons (NautilusIconContainer *container,
}
if (real_action == (GdkDragAction) NAUTILUS_DND_ACTION_SET_AS_BACKGROUND) {
+ NautilusDesktopBackground *background;
+
+ background = nautilus_desktop_background_new (GTK_WIDGET (container));
selected_item = container->details->dnd_info->drag_info.selection_list->data;
- nautilus_desktop_background_receive_dropped_background_image (container,
+
+ nautilus_desktop_background_receive_dropped_background_image (background,
selected_item->uri);
+
+ g_object_unref (background);
+
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]