... and gdk_drag_context_get_source_surface().
In the backends, use direct access to the variables instead.
gdk_drag_context_get_selected_action
gdk_drag_context_get_formats
gdk_drag_context_get_device
-gdk_drag_context_get_source_surface
-gdk_drag_context_get_dest_surface
gdk_drag_context_get_drag_surface
gdk_drag_context_set_hotspot
return context->action;
}
-/**
- * gdk_drag_context_get_source_surface:
- * @context: a #GdkDragContext
- *
- * Returns the #GdkSurface where the DND operation started.
- *
- * Returns: (transfer none): a #GdkSurface
- **/
-GdkSurface *
-gdk_drag_context_get_source_surface (GdkDragContext *context)
-{
- g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), NULL);
-
- return context->source_surface;
-}
-
-/**
- * gdk_drag_context_get_dest_surface:
- * @context: a #GdkDragContext
- *
- * Returns the destination surface for the DND operation.
- *
- * Returns: (transfer none): a #GdkSurface
- **/
-GdkSurface *
-gdk_drag_context_get_dest_surface (GdkDragContext *context)
-{
- g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), NULL);
-
- return context->dest_surface;
-}
-
/**
* gdk_drag_context_get_device:
* @context: a #GdkDragContext
GDK_AVAILABLE_IN_ALL
GdkDragAction gdk_drag_context_get_selected_action (GdkDragContext *context);
-GDK_AVAILABLE_IN_ALL
-GdkSurface *gdk_drag_context_get_source_surface (GdkDragContext *context);
-GDK_AVAILABLE_IN_ALL
-GdkSurface *gdk_drag_context_get_dest_surface (GdkDragContext *context);
-
GDK_AVAILABLE_IN_ALL
GdkDragAction gdk_drag_action_is_unique (GdkDragAction action);
case GDK_KEY_KP_Enter:
case GDK_KEY_KP_Space:
if ((gdk_drag_context_get_selected_action (drag) != 0) &&
- (gdk_drag_context_get_dest_surface (drag) != NULL))
+ (drag->dest_surface != NULL))
{
g_signal_emit_by_name (drag, "drop-performed",
gdk_event_get_time ((GdkEvent *) event));
case GDK_KEY_KP_Enter:
case GDK_KEY_KP_Space:
if ((gdk_drag_context_get_selected_action (context) != 0) &&
- (gdk_drag_context_get_dest_surface (context) != NULL))
+ (context->dest_surface != NULL))
{
g_signal_emit_by_name (context, "drop-performed",
gdk_event_get_time ((GdkEvent *) event));
#endif
if ((gdk_drag_context_get_selected_action (context) != 0) &&
- (gdk_drag_context_get_dest_surface (context) != NULL))
+ (context->dest_surface != NULL))
{
g_signal_emit_by_name (context, "drop-performed",
gdk_event_get_time ((GdkEvent *) event));