@karthick87 - the background tab is drawn by /usr/share/gnome-control-center/ui/appearance.ui (search for "background" in that file) .... I've had a quick look, but not sure as yet which bits to edit to hide the tab. I'll have a look a bit more in depth when I find some time. Thanks.
–
fossfreedom♦Jun 13 '12 at 21:26

@karthick87 - ok - not quite removal of the tab - but updated my answer for this tab functionality to do nothing. Hope this helps.
–
fossfreedom♦Jun 13 '12 at 23:06

4 Answers
4

eog (eye-of-gnome)

When you mentioned that you can right-click an image and set as wallpaper, this answer assumes you meant - open the jpeg image into eog, right-click and choose "set as desktop background".

With this answer, you can remove this option:

With this assumption in mind, you can remove the menu-option AND right-click option by either editing the source directly (if you want to distribute a package) or on a per-client modify the GTK window data.

Now search for "wallpaper" - delete each line that contains this keyword.

Save.

cd ..
gedit debian/changelog

add +ppakarthick to the first line so that it reads something like:

eog (2.32.1-0ubuntu2+ppakarthick) natty; urgency=low

debuild -us -uc
cd ..
sudo dpkg -i eog_*.deb

Note - there is only one deb package to install - either 32bit or 64bit depending upon the ubuntu architecture you have installed. The other deb's produce is a debug package and a development package, both of which you can ignore.

To revert the changes:

sudo apt-get purge eog
sudo apt-get install eog

This will remove the complete eog package. Then, the second command will re-download from the repositories, the current eog package.

Note - it may want to remove the meta package ubuntu-desktop. The only affect this has is if you intend to upgrade to Natty. If you want to upgrade, simply install ubuntu-desktop before the upgrade.

Gnome-Control-Center background tab

The GTK Window data for this tab is in the file /usr/share/gnome-control-center/ui/appearance.ui but I have not found a convenient place in this file that you can hide the background tab itself.

With a source-code change - you can get the background tab and its buttons to both not display wallpaper and do nothing when the buttons are clicked.

each one of those "unmet dependencies" should have been installed when you did sudo apt-get build-dep gnome-control-center - what happens if you install these individually e.g. sudo apt-get install libxss-dev and sudo apt-get install libgnome-menu-dev etc etc.?
–
fossfreedom♦Jun 14 '12 at 7:26