icon factories

Olivier Fourdan fourdan at xfce.org
Thu Dec 18 08:21:03 CET 2003


Look at RH' blucurve theme:

<----------------------------------------------------->
gtk-icon-sizes = "panel-menu=24,24"
 
include "iconrc"
 
style "bluecurve-default"
{
  GtkMenuItem::selected_shadow_type = out
 ...
<----------------------------------------------------->


Then if you look at iconrc :

<----------------------------------------------------->
pixmap_path "/usr/share/icons/Bluecurve/24x24/stock"
style "icon-style"
{
  stock["cdplayer-eject"] = {{ "cdplayer-eject.png", *, *, * }}
  stock["cdplayer-next"] = {{ "cdplayer-next.png", *, *, * }}
  stock["cdplayer-pause"] = {{ "cdplayer-pause.png", *, *, * }}
  stock["cdplayer-play"] = {{ "cdplayer-play.png", *, *, * }}
  ...
<----------------------------------------------------->

Actually, as long as gtk in ocncerned, stock icons are defined in gtkrc.
That may change with new standards come up from freedesktop.org, but I
didn't follow this very closely.

Cheers,
Olivier.

On Thu, 2003-12-18 at 03:43, edscott wilson garcia wrote:
> Hey Jazman,
> 
>   I started looking at your code for icon factories and I don't
> comprendo the need for gtkrc files. I find that gtkrc files to define
> widget styles and keybindings, but not as a means for defining icon
> themes. I find you statically define the icon file names in the array
> 
> static struct _XfceDefaultIcon default_icons[]={...};
>  
> The approach I used in the mime_icon module was to create an xml file
> (mime.xml) for each theme, so that different file names can be used for
> different themes. The equivalent of the default_icons[] array are the
> following lines (using the xfce mime type):
> 
>   <mime-type type="xfce/newmail" icon="newmail.png"/>
>   <mime-type type="xfce/terminal" icon="terminal.png"/>
>   <mime-type type="xfce/sound" icon="sound.png"/>
>   <mime-type type="xfce/schedule" icon="schedule.png"/>
>   <mime-type type="xfce/print" icon="print.png"/>
>   <mime-type type="xfce/paint" icon="paint.png"/>
>   <mime-type type="xfce/network" icon="network.png"/>
>   <mime-type type="xfce/multimedia" icon="multimedia.png"/>
>   <mime-type type="xfce/man" icon="man.png"/>
>   <mime-type type="xfce/games" icon="games.png"/>
>   <mime-type type="xfce/file2" icon="file2.png"/>
>   <mime-type type="xfce/file1" icon="file1.png"/>
>   <mime-type type="xfce/edit" icon="edit.png"/>
>   <mime-type type="xfce/unknown" icon="unknown.png"/>
> 
> The mime_icons module is still missing the following types which you
> define:
> 
>     {XFCE_MINI_EXIT, "minipower.png"},
>     {XFCE_MINI_INFO, "miniinfo.png"},
>     {XFCE_MINI_LOCK, "minilock.png"},
>     {XFCE_MINI_SETUP, "minipalet.png"},
>     {XFCE_NOMAIL, "nomail.png"},
> 
> Type "xfce/unknown" with icon "unknown.png" is what you refer to as
> XFCE_DEFAULT. I rather put the xfce mouse logo as the xfce/default type
> since in a more general icon factory scenario it can refer to more
> diverse objects.
> 
> 
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://moongroup.com/mailman/listinfo/xfce4-dev
-- 
Olivier Fourdan - fourdan at xfce.org
   
   Interoperability is the keyword, uniformity is a dead end. 
   http://www.xfce.org






More information about the Xfce4-dev mailing list