Next: , Previous: gnome-init, Up: Top


4 gnome-program

Initialize and retrieve information about a GNOME application.

4.1 Overview

4.2 Usage

— Class: <gnome-program>

Derives from <gobject>.

This class defines the following slots:

app-id
ID string to use for this application
app-version
Version of this application
human-readable-name
Human readable name of this application
gnome-path
Path in which to look for installed files
gnome-prefix
Prefix where GNOME was installed
gnome-libdir
Library prefix where GNOME was installed
gnome-datadir
Data prefix where GNOME was installed
gnome-sysconfdir
Configuration prefix where GNOME was installed
app-prefix
Prefix where this application was installed
app-libdir
Library prefix where this application was installed
app-datadir
Data prefix where this application was installed
app-sysconfdir
Configuration prefix where this application was installed
create-directories
Create standard GNOME directories on startup
enable-sound
Enable sound on startup
espeaker
How to connect to esd
popt-table
The table of options for popt
popt-flags
The flags to use for popt
popt-context
The popt context pointer that GnomeProgram is using
goption-context
The goption context pointer that GnomeProgram is using
— Function: gnome-program-get ⇒  (ret <gnome-program>)

Retrieves an object that stored information about the application's state. Other functions assume this will always return a <gnome-program> object which (if not ‘#f’) has already been initialized.

ret
The application's <gnome-program> instance, or ‘#f’ if it does not exist.
— Function: gnome-program-get-app-id (self <gnome-program>) ⇒  (ret mchars)
— Method: get-app-id

This function returns a pointer to a static string that the application has provided as an identifier. This is not meant as a human-readable identifier so much as a unique identifier for programs and libraries.

program
The program object
ret
Application ID string.
— Function: gnome-program-get-app-version (self <gnome-program>) ⇒  (ret mchars)
— Method: get-app-version

This function returns a pointer to a static string that the application has provided as a version number. This is not meant as a human-readable identifier so much as a unique identifier for programs and libraries.

program
The application object
ret
Application version string.