Java Desktop System Release 3 Administration Guide

To Create a Custom Controls Option

If the options for the controls setting are not suitable for the needs of your users, you can create a custom controls option. To create a custom controls option, perform the following steps:

  1. Create a directory structure for the option in the /usr/share/themes directory. Use the same directory structure that other options use. For example, to create an option that is called SmallPrint, create the following directories:

    • /usr/share/themes/SmallPrint

    • /usr/share/themes/SmallPrint/gtk-2.0

  2. Locate the gtkrc file that is closest to meeting the needs of your users. Copy the file to the gtk-2.0 directory of your new option.

  3. Open the gtkrc file in a text editor, and modify the attributes of the interface elements as required.

  4. If the new option includes images, install the images for the new option in the pixmaps directory of your new option. If the new option uses images from another option, you do not need to create copies of the images for the new option. Instead, ensure that the reference to the images in the pixmap_path entry in the gtkrc file is correct.

Users can now choose the new option for the controls setting.

For more information about gtkrc files, see the following URL:

http://developer.gnome.org/doc/API/2.0/gtk/gtk-Resource-Files.html