[Gambas-user] More Missing Icons...

Ron Onstenk ronstk at ...239...
Mon Aug 7 14:31:06 CEST 2006


On Monday 07 August 2006 12:49, Benoit Minisini wrote:
> On Monday 07 August 2006 12:26, Ron Onstenk wrote:
> > On Monday 07 August 2006 11:55, Benoit Minisini wrote:
> > > On Monday 07 August 2006 05:33, sbungay wrote:
> > > >    Hi Benoit!
> > > >      Just installed the latest 1.9.37 and the missing icon problem gets
> > > > worse. I now have most of the icons across the top of the main GAMBAS
> > > > window missing.
> > > >     Lets see if we can resolve this. Where is Gambas looking for it'sa
> > > > Icons? I am using FC5 kde-3.5.3-0.4. Result of $ kde-config --path icon
> > > > is  /root/.kde/share/icons/:/usr/share/icons .
> > > >      I've attached a screen shot of the IDE to illustrate the problem..
> > > > kind of difficult to do anything in a GUI when major graphical elements
> > > > are missing  :(.
> > > >
> > > > Steve.
> > >
> > > Do you have a "crystalsvg" directory in these directories? Otherwise do
> > > you have a "default" directory?
> >
> > @Benoit
> > May be a user icon path in the gambas config file.
> > Every user can set there path as the defaults internal in gambas not found.
> > with a copy of the used paths in the project config file
> >
> > As the icon paths in compiled program are from '/root/.kde/'
> > then compiled program is missing icons from /home/anyuser/.kde
> > as the anyuser has access.
> > The icons in ~/.kde are the ones the user did install or overrule
> > the standard from kde.
> >
> > This will make it smarter to transfer compiled programs to
> > all local boxes without every box need the IDE to compile
> > hardcode paths are bad, you have experience with gnome ;)
> >
> >
> > @sbungay
> > /root/.kde/
> >
> > greet to everyone,
> >
> > Ron
> 
> As users generally can't know where their icons are, storing a path in a 
> gambas config file is not a good idea.
> 
> The way the Stock class searches for KDE icons is now correct. I just forgot 
> to fall back to "crystalsvg", which is the default KDE icon theme. The 
> correct version is in the Stock.class file I posted to this mailing-list.
> 
> The problem with GNOME is that I don't know the way to get the icon 
> directories, nor the theme currently used, so I hardcoded the paths. But this 
> is temporary.
> 
> Regards,
> 

in this readme is decribeed how to add icons to a theme.
Maybe this helps for gnome.



Ron


-- 
The only bug free software from MickySoft is 
still shrink-wrapped in their warehouse...
-------------- next part --------------
Note to maintainers: because of the long filenames involved in this module,
'make dist' will fail with versions of GNU tar > 1.12.

==========================================================================
NOTE: The remainder of this README applies only to the 7 accessibility 
      themes in this module:

- HighContrast[LargePrint][Inverse]
- LowContrast[LargePrint]
- LargePrint 
==========================================================================

0. Default Theme
----------------

All the themes in this module inherit from the 'gnome' theme.
The 'gnome' theme is in the gnome-icon-theme module, and has to be built and installed separately.

1. Editing the gtkrc files
--------------------------

The gtkrc.in files for each a11y theme are currently generated by autogen.sh. Each gtkrc.in file is the concatenation of these files:

$theme/gtk-2.0/$theme.rc 
common/gtk-stock-icons.rc 
common/panel-stock-icons.rc 
common/media-stock-icons.rc 
common/capplet-stock-icons.rc

It follows that you should NOT edit gtkrc.in directly. Instead, edit the appropriate .rc file, then re-autogen before building.  This obviously kind of sucks, but it was the only way I could get it to work at the time :/


2. Adding new icons
-------------------

The module is currently configured to make it easy to add or remove a stock icon from all themes at once, but not so easy to do so on a per-theme basis.  This works well for now but probably won't if we want to make this a more general theme repository.

So, to add a new gtk stock icon to all themes:

- Add the icon's filename to common/all-stock-items.data
- Add the line you want to appear in the themes' RC files to the appropriate common/*.rc file
- Add the icon files, each with the same filename, to all the <theme>/pixmaps/ directories.

GNOME icons that are themed via the icon theming mechanism (as specified on freedesktop.org) are currently still added individually in each <theme>/icons subdirectory. E.g. to add a new 48x48 application icon to all the themes, you have to modify each <theme>/icons/48x48/apps/Makefile.am individually, and add the appropriate icon file to each <theme>/icons/48x48/apps directory.


3. Changing icon sizes
----------------------

The icon sizes for ALL the LargePrint themes are defined in configure.in.  Changing them here will affect all LargePrint themes.


4.  Changing colours
--------------------

To change the colours in a particular theme, edit its <themename>/gtk-2.0/<themename>.rc file.


5. Switching icon themes
------------------------
In 2.2 and later, use gnome-theme-manager, and choose the Icon theme from the Details subdialog.

In earlier versions of GNOME, unless you're running my patched theme switcher dialog (patch in bugzilla,
#93486), you'll need to switch icon themes by hand using GConf:

$ gconftool-2 -s /desktop/gnome/interface/icon_theme "<themename>" --type=string


6. To create low contrast icons in GIMP from the original coloured icon
------------------------------------------------------------------------

Use the low-contrast-preset.scm GIMP script in this directory to create a low
contrast icon from a regular-coloured icon.  (Read the comments in the script
for instructions on how to install and use it.)  Thanks to Guillermo for
providing this!

Note: In GIMP, Input=0/0.6/255, Output=75/255 seems to give results 
closer to the icons Suzanna converted in Photoshop, but plugging these 
values into this script seems to give different results from doing it 
manually in the Levels dialog :/


More information about the User mailing list