Hi, I have a couple of questions about source in glib2: 1. when a source is created using g_source_new() and attached to a main context, do I need call g_source_ref() explicitly or it is taken care of within g_source_new() and g_source_attach()? 2. What functions should I call when I am done with the source? It looks I should call g_source_remove() or g_source_destroy to remove the source from its main context first, then call g_source_unref() to free the memory, am I right? thanks -Guochun _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list