[gnome-builder] editor-view: workaround target-list for source-view
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] editor-view: workaround target-list for source-view
- Date: Sun, 17 Dec 2017 05:23:08 +0000 (UTC)
commit 0612d53f89908de264896bcaf9aff2d532323e38
Author: Christian Hergert <chergert redhat com>
Date: Sat Dec 16 21:21:09 2017 -0800
editor-view: workaround target-list for source-view
src/libide/editor/ide-editor-view.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/libide/editor/ide-editor-view.c b/src/libide/editor/ide-editor-view.c
index d7705d4..23e4048 100644
--- a/src/libide/editor/ide-editor-view.c
+++ b/src/libide/editor/ide-editor-view.c
@@ -745,6 +745,15 @@ ide_editor_view_destroy (GtkWidget *widget)
g_assert (IDE_IS_EDITOR_VIEW (self));
+ /*
+ * WORKAROUND: We need to reset the drag dest to avoid warnings by Gtk
+ * reseting the target list for the source view.
+ */
+ if (self->source_view != NULL)
+ gtk_drag_dest_set (GTK_WIDGET (self->source_view),
+ GTK_DEST_DEFAULT_ALL,
+ NULL, 0, GDK_ACTION_COPY);
+
dzl_clear_source (&self->toggle_map_source);
g_clear_object (&self->addins);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]