Re: Bringing gtkdnd.c into the pixbuf era
- From: James Henstridge <james daa com au>
- To: Owen Taylor <otaylor redhat com>
- Cc: gtk-devel-list gtk org
- Subject: Re: Bringing gtkdnd.c into the pixbuf era
- Date: Mon, 16 Apr 2001 12:05:29 +0800 (WST)
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]