diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2010-06-10 15:52:45 +0200 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2010-06-10 16:04:28 +0200 |
commit | 4467145e437074d0a9a233ffa80befb309df754a (patch) | |
tree | 84a5d1453e8cd3e02a6e785de366497ab207596f /gdk/gdkdnd.c | |
parent | 61aa2af23d423b1fdb30f6b0a26195a0322ca9db (diff) | |
download | gtk+-4467145e437074d0a9a233ffa80befb309df754a.tar.gz |
Add a missing accessor for GdkDragContext->source_window.
Diffstat (limited to 'gdk/gdkdnd.c')
-rw-r--r-- | gdk/gdkdnd.c | 18 |
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" |