[Telepathy] Icons not found

Rainer Dorsch rdorsch at web.de
Sat Nov 17 21:46:14 PST 2007


On Monday, 12. November 2007 01:49, Xavier Claessens wrote:
> Le dimanche 11 novembre 2007 à 13:05 -0500, Rainer Dorsch a écrit :
> > I am running empathy in a non-standard installation directory and icons
> > are not found. I get:
> >
> >
> >
> > When starting empathy, I get messages like
> >
> >
> > (empathy:20778): Gtk-WARNING **: could not load image: Icon
> > 'empathy-offline' not present in theme
> >
> >
> > (empathy:20778): Gtk-WARNING **: could not load image:
> > Icon 'empathy-available' not present in theme
> >
> >
> > (empathy:20778): Gtk-WARNING **: could not load image: Icon
> > 'empathy-offline' not present in theme
> >
> >
> > (empathy:20778): Gtk-WARNING **: could not load image:
> > Icon 'empathy-available' not present in theme
> >
> >
> > (empathy:20778): Gtk-WARNING **: could not load image:
> > Icon 'empathy-available' not present in theme
> >
> >
> > At least I have some icons:
> >
> > rdorsch at paddy:/opt/gtalk$ find -name *offline*
> > ./share/empathy/icons/hicolor/16x16/status/empathy-offline.png
> > ./share/empathy/icons/hicolor/scalable/status/empathy-offline.svg
> > rdorsch at paddy:/opt/gtalk$ cd ~/SW.nobackup/tapioca/
> > rdorsch at paddy:~/SW.nobackup/tapioca$ cat empathyloc
> > #!/bin/bash
> > set -vxx
> > PREFIX=/opt/gtalk
> > export PATH=$PREFIX/bin:$PATH
> > export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH
> > export XDG_DATA_DIRS=$PREFIX/share/:/usr/share/
> > export DBUS_SESSION_BUS_ADDRESS=$(head -n 1 /tmp/dbus-gtalk-rd.log)
> > echo DBUS_SESSION_BUS_ADDRESS: $DBUS_SESSION_BUS_ADDRESS
> > EMPATHY_DEBUG=all empathy $*rdorsch at paddy:~/SW.nobackup/tapioca$
> >
> >
> > Does anybody know, what is going wrong?
>
> strange... Empathy tells GTK to look icons in your prefix, it should works.
>
> gtk_icon_theme_append_search_path (
> 	gtk_icon_theme_get_default (),
> 	PKGDATADIR G_DIR_SEPARATOR_S "icons");
>

Hmm....I greped in empathy for the occurrence of 
gtk_icon_theme_appned_search_path and found three files

rdorsch at paddy:~/SW.nobackup/tapioca/empathy$ grep -r 
gtk_icon_theme_append_search_path *
src/.svn/text-base/empathy-call-chandler.c.svn-base:    
gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
src/.svn/text-base/empathy-chat-chandler.c.svn-base:    
gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
src/.svn/text-base/empathy-accounts.c.svn-base: 
gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
src/.svn/text-base/empathy.c.svn-base:  gtk_icon_theme_append_search_path 
(gtk_icon_theme_get_default (),
src/empathy-call-chandler.c:    gtk_icon_theme_append_search_path 
(gtk_icon_theme_get_default (),
src/empathy-chat-chandler.c:    gtk_icon_theme_append_search_path 
(gtk_icon_theme_get_default (),
src/empathy-accounts.c: gtk_icon_theme_append_search_path 
(gtk_icon_theme_get_default (),
src/empathy.c:  gtk_icon_theme_append_search_path (gtk_icon_theme_get_default 
(),


I preceeded them all with debug output:

rdorsch at paddy:~/SW.nobackup/tapioca/empathy$ svn diff
Index: src/empathy-chat-chandler.c
===================================================================
--- src/empathy-chat-chandler.c (revision 439)
+++ src/empathy-chat-chandler.c (working copy)
@@ -113,6 +113,7 @@
        gtk_init (&argc, &argv);

        gtk_window_set_default_icon_name ("empathy");
+        empathy_debug (DEBUG_DOMAIN, "icon 
path: %s",gtk_icon_theme_get_default ());
        gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
                                           PKGDATADIR 
G_DIR_SEPARATOR_S "icons");
        gnome_vfs_init ();
Index: src/empathy-accounts.c
===================================================================
--- src/empathy-accounts.c      (revision 439)
+++ src/empathy-accounts.c      (working copy)
@@ -27,9 +27,12 @@

 #include <glib.h>
 #include <gtk/gtk.h>
+#include <libempathy/empathy-debug.h>

 #include <libempathy-gtk/empathy-accounts-dialog.h>

+#define DEBUG_DOMAIN "EmpathyAccounts"
+
 static void
 destroy_cb (GtkWidget *dialog,
            gpointer   user_data)
@@ -44,6 +47,7 @@

        gtk_init (&argc, &argv);

+       empathy_debug (DEBUG_DOMAIN, "icon 
path: %s",gtk_icon_theme_get_default ());
        gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
                                           DATADIR 
G_DIR_SEPARATOR_S "empathy");
        dialog = empathy_accounts_dialog_show (NULL);
Index: src/empathy.c
===================================================================
--- src/empathy.c       (revision 439)
+++ src/empathy.c       (working copy)
@@ -228,6 +228,7 @@
        g_set_application_name (PACKAGE_NAME);

        gtk_window_set_default_icon_name ("empathy");
+        empathy_debug (DEBUG_DOMAIN, "icon 
path: %s",gtk_icon_theme_get_default ());
        gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
                                           PKGDATADIR 
G_DIR_SEPARATOR_S "icons");
        gnome_vfs_init ();
rdorsch at paddy:~/SW.nobackup/tapioca/empathy$


But I did not see any debug output when running empathy.

Is that maybe the reason why the icons are not working, but give me the 
warning:

(empathy:29129): Gtk-WARNING **: could not load image: Icon 'empathy-away' not 
present in theme


(empathy:29129): Gtk-WARNING **: could not load image: Icon 'gnome-stock-mic' 
not present in theme


(empathy:29129): Gtk-WARNING **: could not load image: Icon 'empathy-offline' 
not present in theme


(empathy:29129): Gtk-WARNING **: could not load image: Icon 'empathy-offline' 
not present in theme


(empathy:29129): Gtk-WARNING **: could not load image: Icon 'empathy-offline' 
not present in theme


Is that the reason why we cannot find the icons?

Thanks,
Rainer


-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
jabber: rdorsch at jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/


More information about the Telepathy mailing list