summaryrefslogtreecommitdiff
path: root/gdk/gdkdnd.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2010-06-10 15:52:45 +0200
committerCosimo Cecchi <cosimoc@gnome.org>2010-06-10 16:04:28 +0200
commit4467145e437074d0a9a233ffa80befb309df754a (patch)
tree84a5d1453e8cd3e02a6e785de366497ab207596f /gdk/gdkdnd.c
parent61aa2af23d423b1fdb30f6b0a26195a0322ca9db (diff)
downloadgtk+-4467145e437074d0a9a233ffa80befb309df754a.tar.gz
Add a missing accessor for GdkDragContext->source_window.
Diffstat (limited to 'gdk/gdkdnd.c')
-rw-r--r--gdk/gdkdnd.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gdk/gdkdnd.c b/gdk/gdkdnd.c
index fb43b1f19f..31aa250a55 100644
--- a/gdk/gdkdnd.c
+++ b/gdk/gdkdnd.c
@@ -166,5 +166,23 @@ gdk_drag_context_get_selected_action (GdkDragContext *context)
return context->action;
}
+/**
+ * gdk_drag_context_get_source_window:
+ * @context: a #GdkDragContext
+ *
+ * Returns the #GdkWindow where the DND operation started.
+ *
+ * Return value: (transfer none): a #GdkWindow
+ *
+ * Since: 2.22
+ **/
+GdkWindow *
+gdk_drag_context_get_source_window (GdkDragContext *context)
+{
+ g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), NULL);
+
+ return context->source_window;
+}
+
#define __GDK_DND_C__
#include "gdkaliasdef.c"