Last chance! 50% off unlimited learning
Sale ends in
argc
and
argv
are adjusted accordingly so your own code will
never see those standard arguments. gtkInit(args = "R")
gtkParseArgs()
, gtkInitCheck()
,
gtkInitWithArgs()
or gOptionContextParse()
with
the option group returned by gtkGetOptionGroup()
, you
don't have to call gtkInit
.
PLEASE NOTE: This function will terminate your program if it was unable to initialize
the GUI for some reason. If you want your program to fall back to a
textual interface you want to call gtkInitCheck()
instead. PLEASE NOTE: Since 2.18, GTK+ calls signal (SIGPIPE, SIG_IGN)
during initialization, to ignore SIGPIPE signals, since these are
almost never wanted in graphical applications. If you do need to
handle SIGPIPE for some reason, reset the handler after gtkInit
,
but notice that other libraries (e.g. libdbus or gvfs) might do
similar things.