Function

Gtkdrag_set_icon_name

Declaration [src]

void
gtk_drag_set_icon_name (
  GdkDragContext* context,
  const gchar* icon_name,
  gint hot_x,
  gint hot_y
)

Description [src]

Sets the icon for a given drag from a named themed icon. See the docs for GtkIconTheme for more details. Note that the size of the icon depends on the icon theme (the icon is loaded at the symbolic size #GTK_ICON_SIZE_DND), thus hot_x and hot_y have to be used with care.

Available since:2.8

Parameters

context 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.
icon_name const gchar*
 

Name of icon to use.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
hot_x gint
 

The X offset of the hotspot within the icon.

hot_y gint
 

The Y offset of the hotspot within the icon.