Function
Gtkparse_args
Declaration [src]
gboolean
gtk_parse_args (
int* argc,
char*** argv
)
Description [src]
Parses command line arguments, and initializes global attributes of GTK+, but does not actually open a connection to a display. (See gdk_display_open(), gdk_get_display_arg_name())
Any arguments used by GTK+ or GDK are removed from the array and
argc
and argv
are updated accordingly.
There is no need to call this function explicitly if you are using gtk_init(), or gtk_init_check().
Note that many aspects of GTK+ require a display connection to function, so this way of initializing GTK+ is really only useful for specialized use cases.
Parameters
argc
-
Type:
int*
A pointer to the number of command line arguments.
The argument will be modified by the function. argv
-
Type: An array of
char**
A pointer to the array of command line arguments.
The argument will be modified by the function. The length of the array is specified in the argc
argument.The caller of the function takes ownership of the returned data, and is responsible for freeing it. Each element is a NUL terminated UTF-8 string.