Function

Gtkget_option_group

since: 2.6

Declaration [src]

GOptionGroup*
gtk_get_option_group (
  gboolean open_default_display
)

Description [src]

Returns a GOptionGroup for the commandline arguments recognized by GTK+ and GDK.

You should add this group to your GOptionContext with g_option_context_add_group(), if you are using g_option_context_parse() to parse your commandline arguments.

Available since: 2.6

Parameters

open_default_display

Type: gboolean

Whether to open the default display when parsing the commandline arguments.

Return value

Type: GOptionGroup

A GOptionGroup for the commandline arguments recognized by GTK+

The caller of the function takes ownership of the data, and is responsible for freeing it.