After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 106076 - broken volume control icon
broken volume control icon
Status: RESOLVED DUPLICATE of bug 104935
Product: gnome-applets
Classification: Other
Component: mixer
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-02-14 13:19 UTC by Daniel van Eeden
Modified: 2003-03-11 19:32 UTC
See Also:
GNOME target: ---
GNOME version: 2.1/2.2


Attachments
screenshot of broken volume control icon (674.67 KB, image/png)
2003-02-14 13:22 UTC, Daniel van Eeden
Details
output of "strace -eopen /usr/local/libexec/mixer_applet2" (10.02 KB, text/plain)
2003-02-25 19:46 UTC, Daniel van Eeden
Details

Description Daniel van Eeden 2003-02-14 13:19:40 UTC
Description of Problem:
The icon for the volume control is broken.

Steps to reproduce the problem:
1. compile gnome 2.2.0
2. start gnome-panel

Actual Results:
Wrong icon

Expected Results:
the speaker icon

How often does this happen? 
always
Comment 1 Daniel van Eeden 2003-02-14 13:22:22 UTC
Created attachment 14317 [details]
screenshot of broken volume control icon
Comment 2 Daniel van Eeden 2003-02-14 13:24:05 UTC
I used the official gnome tarbals.
Comment 3 John Fleck 2003-02-17 15:25:48 UTC
Are you talking about the icon with the little red "x" in the upper
right panel? Is this the volume control applet?
Comment 4 Daniel van Eeden 2003-02-17 21:03:31 UTC
the icon with the little red "x" in the upper right panel is indeed
the volume control applet where I'm talking about.
Comment 5 Daniel van Eeden 2003-02-17 21:05:05 UTC
the icon with the little red "x" in the upper right panel is indeed
the volume control applet where I'm talking about.
Comment 6 John Fleck 2003-02-18 02:22:11 UTC
In the directory {prefix}/share/pixmaps/mixer there should be a bunch
of png files - 

volume-medium.png  volume-mute.png
volume-max.png     volume-min.png     volume-zero.png

Are they there?
Comment 7 Daniel van Eeden 2003-02-18 15:18:44 UTC
Yes, they're there...

compukid@pc1:/usr/local/share/pixmaps/mixer$ ls -lh
total 24K
-rw-r--r--    1 root     staff        1.6K Feb 12 18:45
gnome-mixer-applet.png
-rw-r--r--    1 root     staff        2.4K Feb 12 18:45 volume-max.png
-rw-r--r--    1 root     staff        2.1K Feb 12 18:45 volume-medium.png
-rw-r--r--    1 root     staff        1.9K Feb 12 18:45 volume-min.png
-rw-r--r--    1 root     staff         972 Feb 12 18:45 volume-mute.png
-rw-r--r--    1 root     staff        1.6K Feb 12 18:45 volume-zero.png
Comment 8 Kevin Vandersloot 2003-02-18 15:51:32 UTC
hmm... where is the rest of gnome installed? The applet may be looking
in /usr/share/pixmaps/mixer not /usr/local/share/pixmaps/mixer
Comment 9 Daniel van Eeden 2003-02-18 16:04:54 UTC
gnome is installed in the default (/usr/local) location.
I'll try to make some symlinks so the png's will be available in both
locations.
Comment 10 Daniel van Eeden 2003-02-24 08:44:46 UTC
which keys in gconf are used for settings of the image of the
volume-control icon?
Comment 11 Kevin Vandersloot 2003-02-25 19:34:40 UTC
There are no gconf keys controlling the images. As John said, the
applet looks in {prefix}/share/pixmaps/mixer for the icons. 

Do you have an older version of GNOME installed elsewhere? It may be
the applet is looking in a directory of a different GNOME installation.

Here's how you should be able to find where mixer is looking: 
1) remove the mixer applet from the panel
2) run 'strace -eopen /usr/local/libexec/mixer-applet-2' (or wherever
the binary is located)
3) add the mixer applet to the panel using the right click menu

Now watch for output where it tries to open the image files. Note what
directory it is looking in.
Comment 12 Daniel van Eeden 2003-02-25 19:46:27 UTC
Created attachment 14614 [details]
output of "strace -eopen /usr/local/libexec/mixer_applet2"
Comment 13 Daniel van Eeden 2003-02-25 19:48:12 UTC
Seems like he's searching for the file: 'NULL'

(mixer_applet2:15481): Gtk-WARNING **: Useless GtkIconSource contains
NULL filename and pixbuf
                                                                     
          
(mixer_applet2:15481): Gtk-CRITICAL **: file gtkiconfactory.c: line
2091 (gtk_icon_source_set_filename): assertion `filename == NULL ||
g_path_is_absolute (filename)' failed
Comment 14 mitko 2003-02-28 01:15:33 UTC
Actually, the problem is that it prepends the wrong prefix to icon path:
open("NONE/share/pixmaps/mixer/gnome-mixer-applet.png", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/charset.alias", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)

This is where the icon is opened:
mixer.c:841:    gnome_window_icon_set_from_file (GTK_WINDOW (about), GNOME_ICONDIR"/mixer/gnome-mixer-applet.png");

and this is what the definition of the GNOME_ICONDIR in config.h is:
#define GNOME_ICONDIR "NONE/share/pixmaps"

It appears that the problem is the configure script?
Comment 15 mitko 2003-02-28 01:33:54 UTC
Changing the config.h manually and recompiling the applets fixed the problem for me
Comment 16 Kevin Vandersloot 2003-02-28 15:33:23 UTC
Yeah that's correct. Somehow GNOME_ICONDIR should be set to
"/something/share/pixmaps". I'm not sure why it's not be set correctly.

Here's the relavant line 253 from configure.in:
AC_DEFINE_UNQUOTED(GNOME_ICONDIR, "${prefix}/share/pixmaps")

For you guys ${prefix} should be /usr/local, but for some reason it is
substituting NONE.

The code hasn't changed in years for this. What version of automake,
autoconf are you using?
Comment 17 Daniel van Eeden 2003-02-28 16:00:26 UTC
compukid@pc1:~$ automake --version
automake (GNU automake) 1.4-p6
 
Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
 
Written by Tom Tromey <tromey@redhat.com>
compukid@pc1:~$ autoconf --version
Autoconf version 2.13
Comment 18 Daniel van Eeden 2003-02-28 16:15:19 UTC
I also found this line in config.h
#define PREFIX "NONE"
Comment 19 Daniel van Eeden 2003-02-28 16:23:46 UTC
"./configure --prefix=/usr/local" did fix it for me...
Comment 20 Kevin Vandersloot 2003-03-11 19:32:21 UTC

*** This bug has been marked as a duplicate of 104935 ***