Re: GTK internals

varun_shrivastava wrote:
> but how gtk takes care of calling gdk_init is a mystery to me, as we never
> call gdk_init from our gtk program. [we only call gtk_init() ]
> Can any one provide a view to that?

grep just a little further, and your answers are right there.

gdk_init() calls gdk_init_check();
gdk_init_check() calls gdk_parse_args();
gdk_parse_args() is where gdk initialization actually happens

gtk_init() calls gtk_init_check();
gtk_init_check() calls gtk_parse_args()

gtk_parse_args() calls gdk_parse_args()

muppet <scott at asofyet dot org>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]