Content-type: text/html
Manpage of gtk-server.cfg
gtk-server.cfg
Section: User Commands (1)
Index
Return to Main Contents
NAME
gtk-server.cfg - Configfile for the gtk-server.
SYNOPSIS
gtk-server.cfg
DESCRIPTION
The 'gtk-server.cfg' file is a configfile which is used by the GTK-server. If
both the GTK-server and the 'gtk-server.cfg' file are available in the same
directory as your client script, the GTK-server will read this local configfile. Otherwise
the GTK-server will read the environment variable GTK_SERVER_CONFIG. This variable should
contain the full path and name to the configfile. If this environment variable cannot be
read, the GTK-server will look for a systemwide configfile in your /usr/local/etc directory,
and if this file is not available there, it will look in the /etc directory.
The 'gtk-server.cfg' file contains the decriptions of the GTK functions which
will be used by your client script. The format of the file is <KEYWORD = VALUE>. Lines
starting with a hash '#' will be skipped. The keywords must be written using capitals.
Five keywords are recognized by the GTK-server:
- GTK_LIB_NAME = <library name>
-
Describes the name of the .so or .dll to open.
Example:
GTK_LIB_NAME = libgtk-x11-2.0.so
- GTK_LIB_FUNCTION = <func>, <callback>, <type>, <amount>, <arg1>...<argx>
-
Every GTK function used by a script must be described here. First the name of
the function itself must be mentioned, after that a callback signal if applicable. The real
names for the GTK callback signals must be used here. Then the type of the returnvalue
must be specified. The type can be one of the following:
NONE, WIDGET, BOOL, STRING, LONG or FLOAT. After that, it must be clear how many
arguments the GTK function needs. Finally, the type of each indivdual argument must be declared.
The type of the arguments can be one of the following: NULL, WIDGET, STRING, LONG or FLOAT.
Example:
GTK_LIB_FUNCTION = gtk_window_new, delete-event, WIDGET, 1, LONG
- GTK_SERVER_COMMA = <symbol>
-
When sending plain text containing a comma to a GTK widget, the GTK-server will see the
comma as an argument separator. A comma character therefore has to be replaced by another character
before it is sent to the server. The replacement character is described with this config option. The
GTK-server will substitute this character back to a plain comma when the GTK function is realized.
Example:
GTK_SERVER_COMMA = `
- GTK_SERVER_BRACKET = <symbol>
-
When sending plain text containing a closing bracket ')' to a GTK widget, the GTK-server will see the
bracket as the end of sent arguments. A bracket character therefore has to be replaced by another character
before it is sent to the server. The replacement character is described with this config option. The
GTK-server will substitute this character back to a plain bracket when the GTK function is realized.
Example:
GTK_SERVER_BRACKET = |
- GTK_SERVER_LOG = <directory>
-
This keyword describes the directory where the GTK-server has to put it's logfile, if logging
is turned on. If the directory is described with a dot '.', the logfile will be produced
in the same directory where the GTK-server binary resides.
Example:
GTK_SERVER_LOG = /tmp
EXAMPLES
An example of a 'gtk-server.cfg' file can be found in the sourcepackage.
LICENSE
The GTK-server is GPL licensed.
SEE ALSO
gtk-server(1)
AUTHORS
Orignal concept, design and implementation by Peter van Eerten, e-mail : peter@gtk-server.org
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- EXAMPLES
-
- LICENSE
-
- SEE ALSO
-
- AUTHORS
-
This document was created by
man2html,
using the manual pages.
Time: 19:49:37 GMT, October 14, 2004