Re: No file icons showing up on Solaris 9/SPARC



On Tue, May 06, 2003 at 04:06:22AM -0400, Alexander Larsson wrote:
> On Mon, 5 May 2003, Albert Chin wrote:
> 
> > On Mon, May 05, 2003 at 12:57:53PM -0500, Albert Chin wrote:
> > > I've compiled nautilus-2.2.3.1 for GNOME 2.2.1 on Solaris 9/SPARC with
> > > the Sun C compiler. When I start Nautilus, only one type of icon shows
> > > up:
> > >   ftp://ftp.thewrittenword.com/outgoing/pub/nautilus.png
> > > 
> > > This is quite different from nautilus-2.0.7 on GNOME 2.0.2 which
> > > appears to display ok. The necessary icons are in DATADIR +
> > > "/pixmaps/document-icons/". However, nautilus-find-icon-image.c
> > > doesn't exist in nautilus-2.2.3.1 anymore.  What is responsible for
> > > looking up the icons in DATADIR + "/pixmaps/document-icons/"?
> > 
> > Ok, I installed gnome-icon-theme-1.0.2 and gnome-themes-2.2.1. This
> > didn't solve the problem. It seems GNOME is looking for
> > $prefix/share/icons/hicolor (KDE has this directory). If I symlink one
> > of the icon themes in gnome-icon-theme-1.0.2 to
> > $prefix/share/icons/hicolor, then I get icons in Nautilus. Is this how
> > it's suppose to work?
> 
> No. gnome-icon-theme installs a theme called "gnome", and the default icon 
> theme used is supposed to be "gnome". "hicolor" is just looked in for 
> backwards and KDE compatibility. 

Where is this default "gnome" theme specified? I had to apply the
patch below to get the $prefix/share/icons/gnome theme recognized by
default. It's no doubt wrong but I don't know what the correct
solution is.

-- 
albert chin (china thewrittenword com)

-- snip snip
--- libgnomeui/gnome-icon-theme.c.orig	Mon May  5 16:46:59 2003
+++ libgnomeui/gnome-icon-theme.c	Mon May  5 16:47:08 2003
@@ -268,7 +268,7 @@
   icon_theme->priv = priv;
 
   priv->custom_theme = FALSE;
-  priv->current_theme = g_strdup ("hicolor");
+  priv->current_theme = g_strdup ("gnome");
   priv->search_path = g_new (char *, 5);
   
 
@@ -637,7 +637,7 @@
   insert_theme (icon_theme, priv->current_theme);
   
   /* Always look in the "default" icon theme */
-  insert_theme (icon_theme, "hicolor");
+  insert_theme (icon_theme, "gnome");
   priv->themes = g_list_reverse (priv->themes);
   
   priv->unthemed_icons = g_hash_table_new_full (g_str_hash, g_str_equal,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]