GNU/Linux |
Debian 4.0(Etch) |
|
Gnome2::Program(3pm) |
Gnome2::Program
Glib::Object +−−−−Gnome2::Program
string = $program−>get_app_id
string = $program−>get_app_version
string = $program−>get_human_readable_name
program = Gnome2::Program−>init ($app_id, $app_version, $module_info=undef, ...)
* $app_id (string)
* $app_version (string)
* $module_info (scalar)
* ... (list)
The list argument is for property-value pairs.
list = $program−>locate_file ($domain, $file_name, $only_if_exists)
* $domain (Gnome2::FileDomain)
* $file_name (string)
* $only_if_exists (boolean)
Returns a list of locations.
moduleinfo = Gnome2::Program−>module_load ($mod_name)
* $mod_name (string)
Gnome2::Program−>module_register ($module_info)
* $module_info (scalar)
boolean = Gnome2::Program−>module_registered ($module_info)
* $module_info (scalar)
program or undef = Gnome2::Program−>get_program
’app−datadir’ (string : readable / writable)
Data prefix where this application was installed
’app−id’ (string : readable)
ID string to use for this application
’app−libdir’ (string : readable / writable)
Library prefix where this application was installed
’app−prefix’ (string : readable / writable)
Prefix where this application was installed
’app−sysconfdir’ (string : readable / writable)
Configuration prefix where this application was installed
’app−version’ (string : readable)
Version of this application
’create−directories’ (boolean : readable / writable / construct−only)
Create standard GNOME directories on startup
’enable−sound’ (boolean : readable / writable)
Enable sound on startup
’espeaker’ (string : readable / writable)
How to connect to esd
’gnome−datadir’ (string : readable / writable / construct−only)
Data prefix where GNOME was installed
’gnome−libdir’ (string : readable / writable / construct−only)
Library prefix where GNOME was installed
’gnome−path’ (string : readable / writable / construct−only)
Path in which to look for installed files
’gnome−prefix’ (string : readable / writable / construct−only)
Prefix where GNOME was installed
’gnome−sysconfdir’ (string : readable / writable / construct−only)
Configuration prefix where GNOME was installed
’goption−context’ (gpointer : readable / writable / construct−only)
The goption context pointer that GnomeProgram is using
’human−readable−name’ (string : readable / writable / construct−only)
Human readable name of this application
’popt−context’ (gpointer : readable)
The popt context pointer that GnomeProgram is using
’popt−flags’ (integer : writable / construct−only)
The flags to use for popt
’popt−table’ (gpointer : writable / construct−only)
The table of options for popt
enum
Gnome2::FileDomain
* ’unknown’ / ’
GNOME_FILE_DOMAIN_UNKNOWN ’
* ’libdir’ / ’
GNOME_FILE_DOMAIN_LIBDIR ’
* ’datadir’ / ’
GNOME_FILE_DOMAIN_DATADIR ’
* ’sound’ / ’
GNOME_FILE_DOMAIN_SOUND ’
* ’pixmap’ / ’
GNOME_FILE_DOMAIN_PIXMAP ’
* ’config’ / ’
GNOME_FILE_DOMAIN_CONFIG ’
* ’help’ / ’
GNOME_FILE_DOMAIN_HELP ’
* ’app−libdir’ / ’
GNOME_FILE_DOMAIN_APP_LIBDIR ’
* ’app−datadir’ / ’
GNOME_FILE_DOMAIN_APP_DATADIR ’
* ’app−sound’ / ’
GNOME_FILE_DOMAIN_APP_SOUND ’
* ’app−pixmap’ / ’
GNOME_FILE_DOMAIN_APP_PIXMAP ’
* ’app−config’ / ’
GNOME_FILE_DOMAIN_APP_CONFIG ’
* ’app−help’ / ’
GNOME_FILE_DOMAIN_APP_HELP ’
Gnome2, Glib::Object
Copyright (C) 2003−2004 by the gtk2−perl team.
This software is licensed under the LGPL . See Gnome2 for a full notice.
Gnome2::Program(3pm) |