mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Add some forgotten accessors for GdkDragContext
These fields are accessed in gtk.
This commit is contained in:
parent
b2bd11618f
commit
3bdd56c928
@ -547,6 +547,8 @@ gdk_drag_context_get_selected_action
|
||||
gdk_drag_context_get_suggested_action
|
||||
gdk_drag_context_list_targets
|
||||
gdk_drag_context_get_source_window
|
||||
gdk_drag_context_get_dest_window
|
||||
gdk_drag_context_get_protocol
|
||||
gdk_drag_find_window
|
||||
gdk_drag_get_protocol
|
||||
#endif
|
||||
|
36
gdk/gdkdnd.c
36
gdk/gdkdnd.c
@ -168,5 +168,41 @@ gdk_drag_context_get_source_window (GdkDragContext *context)
|
||||
return context->source_window;
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_drag_context_get_dest_window:
|
||||
* @context: a #GdkDragContext
|
||||
*
|
||||
* Returns the destination windw for the DND operation.
|
||||
*
|
||||
* Return value: (transfer none): a #GdkWindow
|
||||
*
|
||||
* Since: 2.24
|
||||
*/
|
||||
GdkWindow *
|
||||
gdk_drag_context_get_dest_window (GdkDragContext *context)
|
||||
{
|
||||
g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), NULL);
|
||||
|
||||
return context->dest_window;
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_drag_context_get_protocol:
|
||||
* @context: a #GdkDragContext
|
||||
*
|
||||
* Returns the drag protocol thats used by this context.
|
||||
*
|
||||
* Returns: the drag protocol
|
||||
*
|
||||
* Since: 2.24
|
||||
*/
|
||||
GdkDragProtocol
|
||||
gdk_drag_context_get_protocol (GdkDragContext *context)
|
||||
{
|
||||
g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), GDK_DRAG_PROTO_NONE);
|
||||
|
||||
return context->protocol;
|
||||
}
|
||||
|
||||
#define __GDK_DND_C__
|
||||
#include "gdkaliasdef.c"
|
||||
|
@ -112,6 +112,9 @@ GdkDragAction gdk_drag_context_get_suggested_action (GdkDragContext *context)
|
||||
GdkDragAction gdk_drag_context_get_selected_action (GdkDragContext *context);
|
||||
|
||||
GdkWindow *gdk_drag_context_get_source_window (GdkDragContext *context);
|
||||
GdkWindow *gdk_drag_context_get_dest_window (GdkDragContext *context);
|
||||
GdkDragProtocol gdk_drag_context_get_protocol (GdkDragContext *context);
|
||||
|
||||
|
||||
#ifndef GDK_DISABLE_DEPRECATED
|
||||
void gdk_drag_context_ref (GdkDragContext *context);
|
||||
|
Loading…
Reference in New Issue
Block a user