Re: introspection and icons



On Sun, 6 Aug 2000, Tim Janik wrote:

> do we want widget's to include icons directly in the source,
> e.g. with inlined pixbuf, so a call like gtk_widget_get_icon() could
> return a pixbuf?
> i'm pretty sure the answer here is no, since that would bloat gtk's .so
> for the common case, while those icons are really only needed for ui
> builder apps/libs.
> with pixbuf available in gtk, i think we're better off, providing the
> icons in a standard format, i.e. png, and provide
> 
> gchar* gtk_make_widget_icon_path (GType widget_type);
> 
> e.g. for GTK_TYPE_BUTTON, this function would amount to
> g_strconcat (${pkgdatadir}, "/", g_type_name (GTK_TYPE_BUTTON), ".png", NULL);
> (pkgdatadir being /usr/local/share/gtk+/ for the default prefix)

ok, that should have been:
g_strconcat (${pkgdatadir}, "/icons/", g_type_name (GTK_TYPE_BUTTON), ".png", NULL);


> the various widget types can be retrived generically by querying the
> child types of GTK_TYPE_WIDGET recursively.
> 

---
ciaoTJ





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