Function
Gtkdrag_set_icon_widget
Declaration [src]
void
gtk_drag_set_icon_widget (
GdkDragContext* context,
GtkWidget* widget,
gint hot_x,
gint hot_y
)
Description [src]
Changes the icon for drag operation to a given widget. GTK+ will not destroy the widget, so if you don’t want it to persist, you should connect to the “drag-end” signal and destroy it yourself.
Parameters
context
-
Type:
GdkDragContext
The context for a drag. (This must be called with a context for the source side of a drag).
The data is owned by the caller of the function. widget
-
Type:
GtkWidget
A widget to use as an icon.
The data is owned by the caller of the function. hot_x
-
Type:
gint
The X offset within
widget
of the hotspot. hot_y
-
Type:
gint
The Y offset within
widget
of the hotspot.