Add a missing accessor for GdkDragContext->source_window.
This commit is contained in:
@ -1273,6 +1273,7 @@ gdk_drag_context_new
|
|||||||
gdk_drag_drop
|
gdk_drag_drop
|
||||||
gdk_drag_find_window
|
gdk_drag_find_window
|
||||||
gdk_drag_find_window_for_screen
|
gdk_drag_find_window_for_screen
|
||||||
|
gdk_drag_context_get_source_window
|
||||||
gdk_drag_begin
|
gdk_drag_begin
|
||||||
gdk_drag_motion
|
gdk_drag_motion
|
||||||
gdk_drop_finish
|
gdk_drop_finish
|
||||||
|
|||||||
@ -590,6 +590,7 @@ gdk_drag_context_get_actions
|
|||||||
gdk_drag_context_get_selected_action
|
gdk_drag_context_get_selected_action
|
||||||
gdk_drag_context_get_suggested_action
|
gdk_drag_context_get_suggested_action
|
||||||
gdk_drag_context_list_targets
|
gdk_drag_context_list_targets
|
||||||
|
gdk_drag_context_get_source_window
|
||||||
gdk_drag_find_window
|
gdk_drag_find_window
|
||||||
gdk_drag_get_protocol
|
gdk_drag_get_protocol
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
18
gdk/gdkdnd.c
18
gdk/gdkdnd.c
@ -166,5 +166,23 @@ gdk_drag_context_get_selected_action (GdkDragContext *context)
|
|||||||
return context->action;
|
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__
|
#define __GDK_DND_C__
|
||||||
#include "gdkaliasdef.c"
|
#include "gdkaliasdef.c"
|
||||||
|
|||||||
@ -145,6 +145,8 @@ GdkDragAction gdk_drag_context_get_actions (GdkDragContext *context)
|
|||||||
GdkDragAction gdk_drag_context_get_suggested_action (GdkDragContext *context);
|
GdkDragAction gdk_drag_context_get_suggested_action (GdkDragContext *context);
|
||||||
GdkDragAction gdk_drag_context_get_selected_action (GdkDragContext *context);
|
GdkDragAction gdk_drag_context_get_selected_action (GdkDragContext *context);
|
||||||
|
|
||||||
|
GdkWindow *gdk_drag_context_get_source_window (GdkDragContext *context);
|
||||||
|
|
||||||
/* Destination side */
|
/* Destination side */
|
||||||
|
|
||||||
void gdk_drag_status (GdkDragContext *context,
|
void gdk_drag_status (GdkDragContext *context,
|
||||||
|
|||||||
Reference in New Issue
Block a user