Function
Gtkinit_with_args
Declaration [src]
gboolean
gtk_init_with_args (
gint* argc,
gchar*** argv,
const gchar* parameter_string,
const GOptionEntry* entries,
const gchar* translation_domain,
GError** error
)
Description [src]
This function does the same work as gtk_init_check().
Additionally, it allows you to add your own commandline options,
and it automatically generates nicely formatted
--help
output. Note that your program will
be terminated after writing out the help output.
Available since: | 2.6 |
Parameters
argc |
gint* |
Address of the |
|
The argument will be modified by the function. | |
argv |
An array of gchar** |
Address of the
|
|
The argument will be modified by the function. | |
The argument can be set to NULL . | |
The length of the array is specified in the argc argument. | |
The called function takes ownership of the data, and is responsible for freeing it. | |
Each element is a NUL terminated UTF-8 string. | |
parameter_string |
const gchar* |
A string which is displayed in
the first line of |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
entries |
An array of GOptionEntry |
A |
|
The array must be NULL -terminated. | |
The data is owned by the caller of the function. | |
translation_domain |
const gchar* |
A translation domain to use for translating
the |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
error |
GError ** |
The return location for a GError* , or NULL . |