astika Tux's lil' helper
Joined: 31 Oct 2003 Posts: 131 Location: /usr/local/src
|
Posted: Wed Jan 07, 2004 5:09 pm Post subject: [HOWTO] Custom Gnome Main Menu Icon / Remove Arrow Overlay |
|
|
Custom Gnome Main Menu Icon / Remove Arrow Overlay
Objectives
1. Custom icon for Gnome Main Menu button (non-theme applied)
2. Remove arrow graphic overlay from Gnome Main Menu button
Here is a screenshot.
Why
That tiny little arrow overlayed on the button was a visual deterrent
to any nice, custom icon I chose to use on the button. I decided it
was high time someone kicked it to the curb.
If this has been recorded somewhere before, oops.
Warning
If you screw up, don't look at me.
Custom icon for Gnome Main Menu button (non-theme applied)
1. Open gconf
Gnome Main Menu > Applications > System Tools > Configuration Editor
2. Locate keys and values to edit
/apps/panel/profile/default/objects/object_0
(on mine it was "object_0", it might be different for yours, f.e. "object_1")
3. Enable custom icon
key path: /apps/panel/profiles/default/objects/object_0/use_custom_icon
Scroll down to the key value "use_custom_icon" and check it (TRUE)
If it is not checked, and you enter a custom icon path, it will be ignored.
4. Enter a path for a custom icon
key path: /apps/panel/profiles/default/objects/object_0/custom_icon
Just type /the/path/to/whatever/icon/you/wanted/to/use
and that is it. the change is automagically updated once you click off
the "custom_icon" key line.
Remove arrow graphic overlay from Gnome Main Menu button
1. Remerge gnome-panel (2.4.1 or 2.4.0-r2 will work)
Code: |
mdefrees@doubleday mdefrees $ su
Password:
root@doubleday mdefrees # ACCEPT_KEYWORDS="~x86" emerge gnome-panel
Calculating dependencies ...done!
>>> emerge (1 of 1) gnome-base/gnome-panel-2.4.1 to /
>>> md5 src_uri ;-) gnome-panel-2.4.1.tar.bz2
>>> Unpacking source...
>>> Unpacking gnome-panel-2.4.1.tar.bz2 to /var/tmp/portage/gnome-panel-2.4.1/work
* Applying gnome-panel-2.4-panel_size.patch... [ ok ] * Applying gnome-panel-2.4.1-drawers_expanding_fix.patch... [ ok ]>>> Source unpacked.
* Patching ${S}/ltmain.sh...
* Applying portage-1.4.1.patch...
* Applying tmp-1.3.5.patch...
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane...
[1]+ Stopped ACCEPT_KEYWORDS="~x86" emerge gnome-panel
|
As soon as you see it apply the last patch (tmp-1.3.5.patch), hit CTRl+Z to
cancel the compile. This gives you pause while you edit the necessary
source.
2. Open the Gnome Main Menu button source file (panel-menu-button.c) for editing
Code: |
root@doubleday mdefrees # nano /var/tmp/portage/gnome-panel-2.4.1/work/gnome-panel-2.4.1/gnome-panel/panel-menu-button.c
|
3. Locate and comment out the call for the arrow
Code: |
button = g_object_new (PANEL_TYPE_MENU_BUTTON,
"menu-path", menu_path,
"custom-icon", custom_icon,
"use-menu-path", use_menu_path,
"use-custom-icon", use_custom_icon,
/* "has-arrow", TRUE, * / <<< (this is what you are commenting out)
NULL);
|
You are commenting out this line ("has-arrow", TRUE,).
4. Save changes and let emerge continue compilation with the "fg" command
Code: |
root@doubleday mdefrees # fg
ACCEPT_KEYWORDS="~x86" emerge gnome-panel
yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
<< and so on and so on >>
|
Once gnome-panel is remerged, we move on.
5. Reload gnome-panel to see changes
Code: |
root@doubleday mdefrees # killall gnome-panel
|
and viola'. the teeny little arrow graphic that is usually overlayed on the
button should be absent. _________________ even now in heaven, there were angels carrying savage weapons |
|