[gnome-builder/wip/libide-merge] make dnd open in the correct pane
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide-merge] make dnd open in the correct pane
- Date: Thu, 19 Mar 2015 22:06:01 +0000 (UTC)
commit c40a3894dc54510a0cdfa2374c6443afb1ac4d9d
Author: Christian Hergert <christian hergert me>
Date: Thu Mar 19 15:05:55 2015 -0700
make dnd open in the correct pane
src/editor/gb-editor-frame.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/editor/gb-editor-frame.c b/src/editor/gb-editor-frame.c
index 940b7ce..fbb7e12 100644
--- a/src/editor/gb-editor-frame.c
+++ b/src/editor/gb-editor-frame.c
@@ -165,6 +165,12 @@ gb_editor_frame__drag_data_received (GbEditorFrame *self,
g_variant_builder_unref (builder);
g_strfreev (uri_list);
+ /*
+ * request that we get focus first so the workbench will deliver the
+ * document to us in the case it is not already open
+ */
+ gtk_widget_grab_focus (GTK_WIDGET (self));
+
gb_widget_activate_action (GTK_WIDGET (self), "workbench", "open-uri-list", variant);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]