Re: Are stock icons also named icons?



On Thu, 2005-01-27 at 21:01, Damon Chaplin wrote:
> Is it OK to use stock icons as named icons, e.g. using GTK_STOCK_CANCEL
> here:
> 
>   image1 = g_object_new (GTK_TYPE_IMAGE,
> 			 "icon_name", GTK_STOCK_CANCEL,
> 			 "pixel_size", 300,
> 			 NULL);
> 
> Currently this is working fine within Glade itself, but not in the
> generated code, and I can't figure out why.
> 
> The stock icons are builtin, aren't they? So it can't be a path problem.

This turned out to be a bug (the stock items aren't initialized):

  http://bugzilla.gnome.org/show_bug.cgi?id=165493

Damon





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