WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: gtk2 missing icons: 'stock_edit' and 'drive-removable-media'  (Read 3147 times)

Offline wdef

  • Jr. Member
  • **
  • Posts: 59
gtk2 missing icons: 'stock_edit' and 'drive-removable-media'
« on: October 13, 2011, 01:37:37 PM »
Hi

'make tests' for my gtk2-perl build on TC 4.0.1 complains as per subject line above.
Could these be put in gtk2.tcz?

http://developer.gnome.org/gtk/2.24/gtk-Stock-Items.html

Thanks,

Phil
« Last Edit: October 13, 2011, 01:40:40 PM by wdef »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: gtk2 missing icons: 'stock_edit' and 'drive-removable-media'
« Reply #1 on: October 13, 2011, 01:40:22 PM »
Wich icon them are you using?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline wdef

  • Jr. Member
  • **
  • Posts: 59
Re: gtk2 missing icons: 'stock_edit' and 'drive-removable-media'
« Reply #2 on: October 13, 2011, 01:59:57 PM »
I used gtk2_prefs.tcz to select Clearlooks.  But Gtk2-perl tests also ask for the hicolor theme which isn't an option at present in gtk2_prefs.


Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: gtk2 missing icons: 'stock_edit' and 'drive-removable-media'
« Reply #3 on: October 13, 2011, 02:22:27 PM »
First try gnome-icon-theme. It is the most complete set and installs hicolor-icon-theme as dependency.

Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline wdef

  • Jr. Member
  • **
  • Posts: 59
Re: gtk2 missing icons: 'stock_edit' and 'drive-removable-media'
« Reply #4 on: October 13, 2011, 02:29:05 PM »
Thanks. But meanwhile I installed the hi color theme in /usr/local/share/icons/hicolor (where it wanted to go) and it did get rid of these messages. There are other test failures but not these.

Do you know how that theme is supposed to get added to the options in gtk2_pref.tcz?  I see no gtkrc file in the hicolor sources. I assume it comes from somewhere else.

Also: there are no other icons in /usr/local/share/icons
Where are gtk2 theme icons supposed to get installed on TC?

EDIT: please disregard that last question. I see the icons are in gnome-themes.tcz, which btw did not install hicolor-icon-theme as a dependency on tc4.
--> bug?

Also, wondering: shouldn't gtk2 or gtk2_pref.tcz pull in gnome-themes.tcz as a dependency?
« Last Edit: October 13, 2011, 02:41:33 PM by wdef »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: gtk2 missing icons: 'stock_edit' and 'drive-removable-media'
« Reply #5 on: October 13, 2011, 02:58:32 PM »
gnome-icon-theme.tcz creates .gtkrc-2.0 in /home/tc It just works fine, you don't have to deal with it usually. If you instrall additional themes or want to fine tune it, either edit with manually if you are familiar with specs or use a tool like lxappearance.tcz
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: gtk2 missing icons: 'stock_edit' and 'drive-removable-media'
« Reply #6 on: October 13, 2011, 04:16:02 PM »
Quote
Also, wondering: shouldn't gtk2 or gtk2_pref.tcz pull in gnome-themes.tcz as a dependency?

Pulling in nearly 9mb of icons to use any gtk2 app is not nice behavior, IMHO. Beyond just being a theme choice (ie. bike shed, should not be forced by the system), lacking one usually only causes some red x's.
The only barriers that can stop you are the ones you create yourself.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: gtk2 missing icons: 'stock_edit' and 'drive-removable-media'
« Reply #7 on: October 13, 2011, 08:15:42 PM »
if gtk2-per.tcz  needs gnome-themes.tcz, then it should go in the dep file of gtk2-perl.tcz

Offline wdef

  • Jr. Member
  • **
  • Posts: 59
Re: gtk2 missing icons: 'stock_edit' and 'drive-removable-media'
« Reply #8 on: October 14, 2011, 06:39:35 AM »
gnome-icon-theme.tcz creates .gtkrc-2.0 in /home/tc

It seems in my rush I installed gnome-themes.tcz not gnome-icon-themes.tcz (my bad).  The former also contains theme icons but does not create ~/.gtkrc-2.0 and does not have the hicolor extension as a dependency (I installed hicolor from source).  Is there are reason for the overlap between the two different extensions in the repo (other than being slightly different versions)?

Quote
.. use a tool like lxappearance.tcz

Off-topic policy suggestion:  extension descriptions could suggest such a tool where appropriate and perhaps differentiate themselves from an overlapping extension.  Submitters may not do it but it could be worth asking them to.

Pulling in nearly 9mb of icons to use any gtk2 app is not nice behavior, IMHO. Beyond just being a theme choice (ie. bike shed, should not be forced by the system), lacking one usually only causes some red x's.
if gtk2-per.tcz  needs gnome-themes.tcz, then it should go in the dep file of gtk2-perl.tcz

Makes sense in both cases.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: gtk2 missing icons: 'stock_edit' and 'drive-removable-media'
« Reply #9 on: October 14, 2011, 06:56:33 AM »

It seems in my rush I installed gnome-themes.tcz not gnome-icon-themes.tcz (my bad).  The former also contains theme icons but does not create ~/.gtkrc-2.0 and does not have the hicolor extension as a dependency (I installed hicolor from source). 


hicolor-icon-theme.tcz is in the repo, no need for source.


Off-topic policy suggestion:  extension descriptions could suggest such a tool where appropriate and perhaps differentiate themselves from an overlapping extension.  Submitters may not do it but it could be worth asking them to.


lxappearance info file says:

Quote
Desktop-independent theme switcher for GTK+

In fact, it is a desktop-independent theme switcher for GTK+. Isn't it correct?
« Last Edit: October 14, 2011, 07:00:05 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."