* icon registration
@ 2011-03-11 17:30 Gary Thomas
2011-03-14 2:12 ` Zhai, Edwin
0 siblings, 1 reply; 6+ messages in thread
From: Gary Thomas @ 2011-03-11 17:30 UTC (permalink / raw)
To: Poky
I built & installed gnome-icon-theme on top of my sato(-like) image,
but the new icons did not show up. I've built a GTK-webcore application
(midori browser) that wants to use some GNOME icons that it can't find:
Gtk-WARNING **: Error loading theme icon 'stock_new-tab' for stock: Icon 'stock_new-tab' not present in te
For some GTK+ applications, this seems to be fatal :-(
Does anyone know how new icon sets might be registered? Shouldn't
this happen automatically when you install a theme?
n.b. I simply copied the /usr/share/icons/gnome/ tree over /usr/share/icons/Sato
and the application runs perfectly. I'd rather not have to resort this.
Thanks
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: icon registration
2011-03-11 17:30 icon registration Gary Thomas
@ 2011-03-14 2:12 ` Zhai, Edwin
2011-03-14 11:45 ` Gary Thomas
0 siblings, 1 reply; 6+ messages in thread
From: Zhai, Edwin @ 2011-03-14 2:12 UTC (permalink / raw)
To: Gary Thomas; +Cc: Poky
Gary,
We have explicitly set the default icon theme as "sato" to fix a bug.
You can change /etc/gtk/gtkrc.. for a try.
Thanks,
edwin
Gary Thomas wrote:
>
> I built & installed gnome-icon-theme on top of my sato(-like) image,
> but the new icons did not show up. I've built a GTK-webcore application
> (midori browser) that wants to use some GNOME icons that it can't find:
> Gtk-WARNING **: Error loading theme icon 'stock_new-tab' for
> stock: Icon 'stock_new-tab' not present in te
> For some GTK+ applications, this seems to be fatal :-(
>
> Does anyone know how new icon sets might be registered? Shouldn't
> this happen automatically when you install a theme?
>
> n.b. I simply copied the /usr/share/icons/gnome/ tree over
> /usr/share/icons/Sato
> and the application runs perfectly. I'd rather not have to resort this.
>
> Thanks
>
> --
> ------------------------------------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------------------------------------
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: icon registration
2011-03-14 2:12 ` Zhai, Edwin
@ 2011-03-14 11:45 ` Gary Thomas
2011-03-15 1:49 ` Zhai, Edwin
0 siblings, 1 reply; 6+ messages in thread
From: Gary Thomas @ 2011-03-14 11:45 UTC (permalink / raw)
To: Zhai, Edwin; +Cc: Poky
On 03/13/2011 08:12 PM, Zhai, Edwin wrote:
> Gary,
> We have explicitly set the default icon theme as "sato" to fix a bug. You can change /etc/gtk/gtkrc.. for a try.
Wouldn't that be /etc/gtk-2.0/gtkrc?
I could not find a way to use this file to allow both sets of icon (themes, actually).
Do you know how? I don't want to necessarily replace sato, just allow the use of the
standard gnome elements.
n.b. there seems to be a bug in the GTK libraries that make them fail if the default
icons are not available. It tries to render GTK_STOCK_MISSING_IMAGE for the missing
icons and this fails if there is no such icon available in the set (e.g. in sato).
On ARM at least, this is a fatal segmentation error. Should I report this as a bug
in Poky?
> Gary Thomas wrote:
>>
>> I built & installed gnome-icon-theme on top of my sato(-like) image,
>> but the new icons did not show up. I've built a GTK-webcore application
>> (midori browser) that wants to use some GNOME icons that it can't find:
>> Gtk-WARNING **: Error loading theme icon 'stock_new-tab' for stock: Icon 'stock_new-tab' not present in te
>> For some GTK+ applications, this seems to be fatal :-(
>>
>> Does anyone know how new icon sets might be registered? Shouldn't
>> this happen automatically when you install a theme?
>>
>> n.b. I simply copied the /usr/share/icons/gnome/ tree over /usr/share/icons/Sato
>> and the application runs perfectly. I'd rather not have to resort this.
>>
>> Thanks
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: icon registration
2011-03-14 11:45 ` Gary Thomas
@ 2011-03-15 1:49 ` Zhai, Edwin
2011-03-15 1:57 ` Gary Thomas
0 siblings, 1 reply; 6+ messages in thread
From: Zhai, Edwin @ 2011-03-15 1:49 UTC (permalink / raw)
To: Gary Thomas; +Cc: Poky
Gary Thomas wrote:
>
> On 03/13/2011 08:12 PM, Zhai, Edwin wrote:
> > Gary,
> > We have explicitly set the default icon theme as "sato" to fix a
> bug. You can change /etc/gtk/gtkrc.. for a try.
>
> Wouldn't that be /etc/gtk-2.0/gtkrc?
>
> I could not find a way to use this file to allow both sets of icon
> (themes, actually).
> Do you know how? I don't want to necessarily replace sato, just allow
> the use of the
> standard gnome elements.
>
Can you set the icon theme to your theme in the config file? Does it
work? Freedesktop spec says all the directories except "hicolor" under
/usr/share/icons are scanned (order is not defined) first, and then goto
"hicolor" if not found. Another issue is you probably need to generate
cache for your icon theme by gtk-update-icon-cache.
> n.b. there seems to be a bug in the GTK libraries that make them fail
> if the default
> icons are not available. It tries to render GTK_STOCK_MISSING_IMAGE
> for the missing
> icons and this fails if there is no such icon available in the set
> (e.g. in sato).
> On ARM at least, this is a fatal segmentation error. Should I report
> this as a bug
> in Poky?
>
What's the result of this bug, segfault or no icons on the desktop? If
you can reproduce it, pls. file a bug.
Thanks,
edwin
> > Gary Thomas wrote:
> >>
> >> I built & installed gnome-icon-theme on top of my sato(-like) image,
> >> but the new icons did not show up. I've built a GTK-webcore
> application
> >> (midori browser) that wants to use some GNOME icons that it can't
> find:
> >> Gtk-WARNING **: Error loading theme icon 'stock_new-tab' for stock:
> Icon 'stock_new-tab' not present in te
> >> For some GTK+ applications, this seems to be fatal :-(
> >>
> >> Does anyone know how new icon sets might be registered? Shouldn't
> >> this happen automatically when you install a theme?
> >>
> >> n.b. I simply copied the /usr/share/icons/gnome/ tree over
> /usr/share/icons/Sato
> >> and the application runs perfectly. I'd rather not have to resort
> this.
> >>
> >> Thanks
>
> --
> ------------------------------------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------------------------------------
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: icon registration
2011-03-15 1:49 ` Zhai, Edwin
@ 2011-03-15 1:57 ` Gary Thomas
2011-03-15 2:20 ` Zhai, Edwin
0 siblings, 1 reply; 6+ messages in thread
From: Gary Thomas @ 2011-03-15 1:57 UTC (permalink / raw)
To: Zhai, Edwin; +Cc: Poky
On 03/14/2011 07:49 PM, Zhai, Edwin wrote:
>
>
> Gary Thomas wrote:
>>
>> On 03/13/2011 08:12 PM, Zhai, Edwin wrote:
>> > Gary,
>> > We have explicitly set the default icon theme as "sato" to fix a bug. You can change /etc/gtk/gtkrc.. for a try.
>>
>> Wouldn't that be /etc/gtk-2.0/gtkrc?
>>
>> I could not find a way to use this file to allow both sets of icon (themes, actually).
>> Do you know how? I don't want to necessarily replace sato, just allow the use of the
>> standard gnome elements.
>>
>
> Can you set the icon theme to your theme in the config file? Does it work? Freedesktop spec says all the directories except "hicolor" under /usr/share/icons are scanned (order is
> not defined) first, and then goto "hicolor" if not found. Another issue is you probably need to generate cache for your icon theme by gtk-update-icon-cache.
This is definitely *not* the behaviour. I did an strace on the program and it is only
looking at /usr/share/icons/sato then /usr/share/icons/hicolor.
I could set the theme, but then what happens to the sato theme? This seems contradictory
to me.
>> n.b. there seems to be a bug in the GTK libraries that make them fail if the default
>> icons are not available. It tries to render GTK_STOCK_MISSING_IMAGE for the missing
>> icons and this fails if there is no such icon available in the set (e.g. in sato).
>> On ARM at least, this is a fatal segmentation error. Should I report this as a bug
>> in Poky?
>>
>
> What's the result of this bug, segfault or no icons on the desktop? If you can reproduce it, pls. file a bug.
On ARM, I get a segmentation error.
The problem with filing a bug is that I see this in midori, a recipe I brought over
from OE (with much pain to build BTW)
>> > Gary Thomas wrote:
>> >>
>> >> I built & installed gnome-icon-theme on top of my sato(-like) image,
>> >> but the new icons did not show up. I've built a GTK-webcore application
>> >> (midori browser) that wants to use some GNOME icons that it can't find:
>> >> Gtk-WARNING **: Error loading theme icon 'stock_new-tab' for stock: Icon 'stock_new-tab' not present in te
>> >> For some GTK+ applications, this seems to be fatal :-(
>> >>
>> >> Does anyone know how new icon sets might be registered? Shouldn't
>> >> this happen automatically when you install a theme?
>> >>
>> >> n.b. I simply copied the /usr/share/icons/gnome/ tree over /usr/share/icons/Sato
>> >> and the application runs perfectly. I'd rather not have to resort this.
>> >>
>> >> Thanks
>>
>> --
>> ------------------------------------------------------------
>> Gary Thomas | Consulting for the
>> MLB Associates | Embedded world
>> ------------------------------------------------------------
>>
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: icon registration
2011-03-15 1:57 ` Gary Thomas
@ 2011-03-15 2:20 ` Zhai, Edwin
0 siblings, 0 replies; 6+ messages in thread
From: Zhai, Edwin @ 2011-03-15 2:20 UTC (permalink / raw)
To: Gary Thomas; +Cc: Poky
Gary Thomas wrote:
>
> On 03/14/2011 07:49 PM, Zhai, Edwin wrote:
> >
> >
> >
> >
> > Can you set the icon theme to your theme in the config file? Does it
> work? Freedesktop spec says all the directories except "hicolor" under
> /usr/share/icons are scanned (order is
>
> > not defined) first, and then goto "hicolor" if not found. Another
> issue is you probably need to generate cache for your icon theme by
> gtk-update-icon-cache.
>
> This is definitely *not* the behaviour. I did an strace on the
> program and it is only
> looking at /usr/share/icons/sato then /usr/share/icons/hicolor.
>
Does sato has icon with same name as your theme? If so, no need to
search your theme. Any unique icons in your theme are chosen?
> I could set the theme, but then what happens to the sato theme? This
> seems contradictory
> to me.
>
> >> n.b. there seems to be a bug in the GTK libraries that make them
> fail if the default
> >> icons are not available. It tries to render GTK_STOCK_MISSING_IMAGE
> for the missing
> >> icons and this fails if there is no such icon available in the set
> (e.g. in sato).
> >> On ARM at least, this is a fatal segmentation error. Should I
> report this as a bug
> >> in Poky?
> >>
> >
> > What's the result of this bug, segfault or no icons on the desktop?
> If you can reproduce it, pls. file a bug.
>
> On ARM, I get a segmentation error.
>
> The problem with filing a bug is that I see this in midori, a recipe I
> brought over
> from OE (with much pain to build BTW)
>
> >> > Gary Thomas wrote:
> >> >>
> >> >> I built & installed gnome-icon-theme on top of my sato(-like)
> image,
> >> >> but the new icons did not show up. I've built a GTK-webcore
> application
> >> >> (midori browser) that wants to use some GNOME icons that it
> can't find:
> >> >> Gtk-WARNING **: Error loading theme icon 'stock_new-tab' for
> stock: Icon 'stock_new-tab' not present in te
> >> >> For some GTK+ applications, this seems to be fatal :-(
> >> >>
> >> >> Does anyone know how new icon sets might be registered? Shouldn't
> >> >> this happen automatically when you install a theme?
> >> >>
> >> >> n.b. I simply copied the /usr/share/icons/gnome/ tree over
> /usr/share/icons/Sato
> >> >> and the application runs perfectly. I'd rather not have to
> resort this.
> >> >>
> >> >> Thanks
> >>
> >> --
> >> ------------------------------------------------------------
> >> Gary Thomas | Consulting for the
> >> MLB Associates | Embedded world
> >> ------------------------------------------------------------
> >>
>
> --
> ------------------------------------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------------------------------------
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-03-15 2:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-11 17:30 icon registration Gary Thomas
2011-03-14 2:12 ` Zhai, Edwin
2011-03-14 11:45 ` Gary Thomas
2011-03-15 1:49 ` Zhai, Edwin
2011-03-15 1:57 ` Gary Thomas
2011-03-15 2:20 ` Zhai, Edwin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.