forked from AuroraMiddleware/gtk
Add missing GdkDrag getters
This commit is contained in:
parent
ec76f65d09
commit
3c95798cd3
@ -750,10 +750,12 @@ GdkDragAction
|
|||||||
GDK_ACTION_ALL
|
GDK_ACTION_ALL
|
||||||
|
|
||||||
gdk_drag_get_display
|
gdk_drag_get_display
|
||||||
|
gdk_drag_get_content
|
||||||
gdk_drag_get_actions
|
gdk_drag_get_actions
|
||||||
gdk_drag_get_selected_action
|
gdk_drag_get_selected_action
|
||||||
gdk_drag_get_formats
|
gdk_drag_get_formats
|
||||||
gdk_drag_get_device
|
gdk_drag_get_device
|
||||||
|
gdk_drag_get_surface
|
||||||
gdk_drag_get_drag_surface
|
gdk_drag_get_drag_surface
|
||||||
gdk_drag_set_hotspot
|
gdk_drag_set_hotspot
|
||||||
|
|
||||||
|
@ -214,6 +214,42 @@ gdk_drag_get_device (GdkDrag *drag)
|
|||||||
return priv->device;
|
return priv->device;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gdk_drag_get_content:
|
||||||
|
* @drag: a #GdkDrag
|
||||||
|
*
|
||||||
|
* Returns the #GdkContentProvider associated to the GdkDrag object.
|
||||||
|
*
|
||||||
|
* Returns: (transfer none): The #GdkContentProvider associated to @drag.
|
||||||
|
**/
|
||||||
|
GdkContentProvider *
|
||||||
|
gdk_drag_get_content (GdkDrag *drag)
|
||||||
|
{
|
||||||
|
GdkDragPrivate *priv = gdk_drag_get_instance_private (drag);
|
||||||
|
|
||||||
|
g_return_val_if_fail (GDK_IS_DRAG (drag), NULL);
|
||||||
|
|
||||||
|
return priv->content;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gdk_drag_get_surface:
|
||||||
|
* @drag: a #GdkDrag
|
||||||
|
*
|
||||||
|
* Returns the #GdkSurface where the drag originates.
|
||||||
|
*
|
||||||
|
* Returns: (transfer none): The #GdkSurface where the drag originates
|
||||||
|
**/
|
||||||
|
GdkSurface *
|
||||||
|
gdk_drag_get_surface (GdkDrag *drag)
|
||||||
|
{
|
||||||
|
GdkDragPrivate *priv = gdk_drag_get_instance_private (drag);
|
||||||
|
|
||||||
|
g_return_val_if_fail (GDK_IS_DRAG (drag), NULL);
|
||||||
|
|
||||||
|
return priv->surface;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gdk_drag_init (GdkDrag *drag)
|
gdk_drag_init (GdkDrag *drag)
|
||||||
{
|
{
|
||||||
|
@ -91,6 +91,13 @@ void gdk_drag_set_hotspot (GdkDrag *drag,
|
|||||||
gint hot_x,
|
gint hot_x,
|
||||||
gint hot_y);
|
gint hot_y);
|
||||||
|
|
||||||
|
GDK_AVAILABLE_IN_ALL
|
||||||
|
GdkContentProvider *
|
||||||
|
gdk_drag_get_content (GdkDrag *drag);
|
||||||
|
|
||||||
|
GDK_AVAILABLE_IN_ALL
|
||||||
|
GdkSurface * gdk_drag_get_surface (GdkDrag *drag);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GDK_DND_H__ */
|
#endif /* __GDK_DND_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user