Re: Bringing gtkdnd.c into the pixbuf era



On 15 Apr 2001, Owen Taylor wrote:

> 
> This patch:
>  
>  - Adds a new icon size GTK_ICON_SIZE_DND and two new stock
>    ids: GTK_STOCK_DND, GTK_STOCK_DND_MULTIPLE.
> 
>  - Makes GTK+ uses GTK_STOCK_DND for the default drag icon
> 
>  - Adds some new functions for setting the drag icons from
>    stock ids and pixbufs:
> 
> void gtk_drag_set_icon_pixbuf (GdkDragContext *context,
>                                GdkPixbuf      *pixbuf,
>                                gint            hot_x,
>                                gint            hot_y);
> void gtk_drag_set_icon_stock  (GdkDragContext *context,
>                                const gchar    *stock_id,
>                                gint            hot_x,
>                                gint            hot_y);

One small comment here:  Wouldn't the hotspot be a property of the actual
stock icon used?  I could imagine the icon chosen by some theme having a
different hotspot.  Is it worth having hotspots associated with stock
icons (could be useful for stock cursors, if we ever add something like
that).

James.

-- 
Email: james daa com au
WWW:   http://www.daa.com.au/~james/






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]