From Ubuntu Forums:
1. 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:
3) Install files required to build gnome-panel from source and download the source
Code:
sudo aptitude 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
Code:
#define MAX_ITEMS_OR_SUBMENU 5
I changed it to 20.
Save.
6) Install the modified gnome-panel and restart it
(Sudo is necessary. Otherwise is does not work.
Code:
sudo ./configure
sudo make
sudo make install
killall gnome-panel