[gnome-builder] editor-view: clear DnD after setting buffer
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] editor-view: clear DnD after setting buffer
- Date: Wed, 13 Dec 2017 09:35:15 +0000 (UTC)
commit 9510f554f3fbbf64aca87970526a88cf6ff9d5df
Author: Christian Hergert <chergert redhat com>
Date: Wed Dec 13 01:23:52 2017 -0800
editor-view: clear DnD after setting buffer
The GtkTextView chain-up will try to set these, so we want to
wait until afterwards and clear them.
src/libide/editor/ide-editor-view.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/editor/ide-editor-view.c b/src/libide/editor/ide-editor-view.c
index ba28eec..58134eb 100644
--- a/src/libide/editor/ide-editor-view.c
+++ b/src/libide/editor/ide-editor-view.c
@@ -315,6 +315,7 @@ ide_editor_view_set_buffer (IdeEditorView *self,
dzl_binding_group_set_source (self->buffer_bindings, buffer);
gtk_text_view_set_buffer (GTK_TEXT_VIEW (self->source_view),
GTK_TEXT_BUFFER (buffer));
+ gtk_drag_dest_unset (GTK_WIDGET (self->source_view));
}
}
@@ -909,8 +910,6 @@ ide_editor_view_init (IdeEditorView *self)
gtk_widget_init_template (GTK_WIDGET (self));
- gtk_drag_dest_unset (GTK_WIDGET (self->source_view));
-
ide_layout_view_set_can_split (IDE_LAYOUT_VIEW (self), TRUE);
ide_layout_view_set_menu_id (IDE_LAYOUT_VIEW (self), "ide-editor-view-document-menu");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]