Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old February 11th, 2009   #1
w0ng
Just Give Me the Beans!
 
w0ng's Avatar
 
Join Date: Feb 2008
Location: Sydney, Australia
My beans are hidden!
Ubuntu 8.10 Intrepid Ibex
HOW TO: Display more than 5 bookmarks in gnome-panel "Places" menu

Derived from:
http://brainstorm.ubuntu.com/idea/14381/
http://ubuntuforums.org/showthread.php?t=733808

1) Open Terminal

2a) Install apt-build
Code:
sudo apt-get update
sudo apt-get install apt-build
2b) Configure apt-build:
  • Optimization level: Medium
  • Add apt-build repository to sources.list: Yes
  • Architecture: <SELECT YOUR ARCHITECTURE>

3) Install files required to build gnome-panel from source and download the source
Code:
sudo apt-get build-dep gnome-panel
sudo apt-build source gnome-panel
4) Navigate to the downloaded gnome-panel source folder and open the menu items file
Code:
cd /var/cache/apt-build/build/gnome-panel-*
sudo gedit gnome-panel/panel-menu-items.c
5) Set the the maximum number of bookmarks to display before placing them in the Bookmarks submenu

Find the line:
PHP Code:
if (g_slist_length (add_bookmarks) <= MAX_ITEMS_OR_SUBMENU) { 
and replace it with:
PHP Code:
if (g_slist_length (add_bookmarks) <= 20) { 
Save the file.

6) Install the modified gnome-panel and restart it
Code:
sudo ./configure
sudo make
sudo make install
killall gnome-panel
Before and after pics:
__________________
UBUNTU 8.10 INTREPID IBEX x86_64 | 3.16GHz INTEL C2D E8500 | 4GB DDR2 1066 MHz | 512MB ATI HD4850 | 22" ASUS VW222U 1680x1050 | 640GB WD SATAII 7200RPM

Last edited by w0ng; March 16th, 2009 at 07:35 AM..
w0ng is offline   Reply With Quote
 

Bookmarks

Tags
bookmarks, gnome-panel, menu, places

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:01 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry