summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-02-17 01:04:21 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-02-17 01:04:21 (GMT)
commit6a2a14683ab86a680a429bc0c6754ba351764839 (patch)
tree3dbe98ee4913fa7095dd62cecb816c349e646e6a /src/gui
parente452b1d6f16f6fa53bd6b95fa7241d6e7335abc3 (diff)
Introduced a new window for destinaton previews in DragAndDrop operations.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/editor.c4
-rw-r--r--src/gui/panels/panel.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/editor.c b/src/gui/editor.c
index bc4f144..6f5ef7a 100644
--- a/src/gui/editor.c
+++ b/src/gui/editor.c
@@ -36,6 +36,7 @@
#include "../analysis/project.h"
#include "../core/params.h"
#include "../gtkext/easygtk.h"
+#include "../gtkext/gtkdockable.h"
#include "../gtkext/gtkdockstation.h"
#include "../gtkext/support.h"
@@ -225,6 +226,9 @@ GtkWidget *create_editor(void)
gtk_box_pack_start(GTK_BOX(vbox1), widget, FALSE, FALSE, 0);
+ /* Autre */
+
+ prepare_drag_and_drop_window();
diff --git a/src/gui/panels/panel.c b/src/gui/panels/panel.c
index a9e3028..01307cb 100644
--- a/src/gui/panels/panel.c
+++ b/src/gui/panels/panel.c
@@ -232,6 +232,8 @@ void g_panel_item_init_ext(GPanelItem *item, GObject *ref, const char *name, con
panels_list_add_tail(item, &_panels_list);
+ gtk_dockable_setup_dnd(GTK_DOCKABLE(item));
+
}