On Wed, 2008-11-12 at 15:20 -0600, Thomas Stover wrote: > So if one wants to use g_io_channels with out gtk (console / server > app), what exactly is the idea? Does glib need an initialization > function called first?
only if you use GObject and the rest of the type system - in which case you'll need to use g_type_init(); or if you use threads - in which case you'll need g_thread_init(). otherwise you don't need initialization functions. > I see the g_main_loop_new() and friends > functions, and that part make sense. The thing is g_io_add_watch_full() > type functions don't have a main loop parameter. In other words were > does this "default" main loop come from? all the sources attach themselves to the default *context*, not main loop. a GMainContext can have multiple main loops. the default context is created and managed by GLib. ciao, Emmanuele. -- Emmanuele Bassi, W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list