diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2010-12-21 14:48:59 +0100 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-01-11 11:43:17 +0100 |
commit | 97e67f49279ad87737541249ef09b99c4bc1d9fe (patch) | |
tree | 53de9fde101d4c2d6969c778ddf589656ba4b4e9 /src/nautilus-notebook.c | |
parent | cd976fa26099fb8c1f2084a6bae7ac0b05f5e29e (diff) | |
download | nautilus-97e67f49279ad87737541249ef09b99c4bc1d9fe.tar.gz |
dnd: move DnD slot proxying code to src/
Diffstat (limited to 'src/nautilus-notebook.c')
-rw-r--r-- | src/nautilus-notebook.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/nautilus-notebook.c b/src/nautilus-notebook.c index 38a259026..1ac24bc77 100644 --- a/src/nautilus-notebook.c +++ b/src/nautilus-notebook.c @@ -27,12 +27,13 @@ #include "config.h" #include "nautilus-notebook.h" + #include "nautilus-navigation-window.h" +#include "nautilus-navigation-window-pane.h" #include "nautilus-window-manage-views.h" #include "nautilus-window-private.h" #include "nautilus-window-slot.h" -#include "nautilus-navigation-window-pane.h" -#include <libnautilus-private/nautilus-dnd.h> +#include "nautilus-window-slot-dnd.h" #include <glib/gi18n.h> #include <gio/gio.h> @@ -331,7 +332,6 @@ close_button_clicked_cb (GtkWidget *widget, static GtkWidget * build_tab_label (NautilusNotebook *nb, NautilusWindowSlot *slot) { - NautilusDragSlotProxyInfo *drag_info; GtkWidget *hbox, *label, *close_button, *image, *spinner, *icon; /* set hbox spacing and label padding (see below) so that there's an @@ -377,12 +377,7 @@ build_tab_label (NautilusNotebook *nb, NautilusWindowSlot *slot) gtk_box_pack_start (GTK_BOX (hbox), close_button, FALSE, FALSE, 0); gtk_widget_show (close_button); - drag_info = g_new0 (NautilusDragSlotProxyInfo, 1); - drag_info->target_slot = slot; - g_object_set_data_full (G_OBJECT (hbox), "proxy-drag-info", - drag_info, (GDestroyNotify) g_free); - - nautilus_drag_slot_proxy_init (hbox, drag_info); + nautilus_drag_slot_proxy_init (hbox, NULL, slot); g_object_set_data (G_OBJECT (hbox), "label", label); g_object_set_data (G_OBJECT (hbox), "spinner", spinner); |