Skip to contentSkip to conversation

icon registration

DISCUSSION Gary Thomas 2 participants 6 messages Mar 11, 2011 – Mar 15, 2011

lore
Share & tools
lore
#0 lore raw

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

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw

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

Quoted 26 lines · Gary Thomas

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

Signature · 8 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky
#2 lore raw
Quoted 2 lines · Edwin

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?

Quoted 15 lines
Quoted 14 lines · Gary Thomas

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

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw
Quoted 4 lines · Gary Thomas
Quoted 2 lines · Edwin

Gary,
We have explicitly set the default icon theme as "sato" to fix a

Quoted 8 lines

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.

Quoted 6 lines

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

Quoted 27 lines
Quoted 4 lines
Quoted 3 lines · Gary Thomas

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

Quoted 1 line
Quoted 1 line

(midori browser) that wants to use some GNOME icons that it can't

find:

Quoted 1 line
Quoted 1 line

Gtk-WARNING **: Error loading theme icon 'stock_new-tab' for stock:

Icon 'stock_new-tab' not present in te

Quoted 6 lines
Quoted 6 lines

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

Quoted 1 line
Quoted 1 line

and the application runs perfectly. I'd rather not have to resort

this.

Quoted 2 lines
Quoted 2 lines

Thanks

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#4 lore raw
Quoted 10 lines · Edwin
Quoted 7 lines · Gary Thomas
Quoted 2 lines · Edwin

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?

Quoted 7 lines
Quoted 4 lines

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.

Quoted 8 lines
Quoted 6 lines

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)

Quoted 22 lines
Quoted 22 lines
Quoted 8 lines
Quoted 7 lines · Gary Thomas

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 :-(

Quoted 7 lines
Quoted 7 lines

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
------------------------------------------------------------

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#5 lore raw
Quoted 6 lines · Gary Thomas
Quoted 4 lines · Edwin
Quoted 9 lines
Quoted 1 line

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

Quoted 1 line

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?

Quoted 57 lines

I could set the theme, but then what happens to the sato theme? This seems contradictory to me.

Quoted 1 line
Quoted 1 line

n.b. there seems to be a bug in the GTK libraries that make them

fail if the default

Quoted 1 line
Quoted 1 line

icons are not available. It tries to render GTK_STOCK_MISSING_IMAGE

for the missing

Quoted 1 line
Quoted 1 line

icons and this fails if there is no such icon available in the set

(e.g. in sato).

Quoted 1 line
Quoted 1 line

On ARM at least, this is a fatal segmentation error. Should I

report this as a bug

Quoted 4 lines
Quoted 2 lines

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)

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines · Gary Thomas

I built & installed gnome-icon-theme on top of my sato(-like)

image,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

but the new icons did not show up. I've built a GTK-webcore

application

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

(midori browser) that wants to use some GNOME icons that it

can't find:

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Gtk-WARNING **: Error loading theme icon 'stock_new-tab' for

stock: Icon 'stock_new-tab' not present in te

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

and the application runs perfectly. I'd rather not have to

resort this.

Quoted 9 lines
Quoted 9 lines
Quoted 2 lines
Quoted 2 lines

Thanks

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------