18
18
# "Perlized" from C source by Manish Singh <yosh@gimp.org>
22
Returns the host gimp version.
21
$blurb = 'Returns the host GIMP version.';
26
This procedure returns the version number of the currently running gimp.
24
This procedure returns the version number of the currently running GIMP.
29
$author = $copyright = 'Manish Singh';
27
&yosh_pdb_misc('1999');
33
30
{ name => 'version', type => 'string',
34
desc => 'The gimp version',
35
alias => 'g_strdup (GIMP_VERSION)', no_declare => 1 }
38
%invoke = ( headers => [ qw("libgimpbase/gimpbase.h") ] );
31
desc => 'GIMP version number' }
35
headers => [ qw("libgimpbase/gimpbase.h") ],
38
version = g_strdup (GIMP_VERSION);
45
$blurb = 'Returns the PID of the host GIMP process.';
48
This procedure returns the process ID of the currently running GIMP.
51
&mitch_pdb_misc('2005', '2.4');
54
{ name => 'pid', type => 'int32',
59
headers => [ qw(<sys/types.h> <unistd.h> <process.h>) ],
42
$blurb = 'Causes the gimp to exit gracefully.';
69
$blurb = 'Causes GIMP to exit gracefully.';
45
The internal procedure which can either be used to make the gimp
46
quit. If there are unsaved images in an interactive GIMP session, the
47
user will be asked for confirmation. If force is TRUE, the application
48
is quit without querying the user to save any dirty images.
72
If there are unsaved images in an interactive GIMP session, the user
73
will be asked for confirmation. If force is TRUE, the application is
74
quit without querying the user to save any dirty images.
54
80
{ name => 'force', type => 'boolean',
55
desc => 'Flag specifying whether to force the gimp to or exit
81
desc => 'Force GIMP to quit without asking' }
60
85
headers => [ qw("core/gimp.h") ],
61
code => 'gimp_exit (gimp, force);'
88
gimp_exit (gimp, force);
65
@procs = qw(version quit);
66
%exports = (app => [@procs], lib => [$procs[0]]);
95
@procs = qw(version getpid quit);
97
%exports = (app => [@procs], lib => [@procs[0..1]]);
68
99
$desc = 'Miscellaneous';