GMainContext useful in implementing some additional styles of main loop

* gmain.c, gmain.h (g_main_context_new, g_main_context_destroy): GMainContext useful
in implementing some additional styles of main loop usage.  To do this, however, Joe
Hacker needs to be able to create/destroy GMainContext's at will. This is just an
export of existing functionality, rather than new functionality.

They are listed in the "Low level functions for implementing custom main loops"
section of the header file, to avoid confusing people.

* gobject/Makefile.am:
  . You have to 'touch oldest-source-stamp' if you want to avoid having
  the Makefile constantly rebuild itself.
  . Fix marshaller generation rules to work with srcdir != builddir
    (there were issues with trying to run "./glib-genmarshal", etc.)
This commit is contained in:
Elliot Lee
2000-12-12 19:34:41 +00:00
parent 4cdb98303b
commit 8f7579774c
14 changed files with 256 additions and 113 deletions

View File

@@ -143,6 +143,9 @@ GSource *g_main_context_find_source_by_funcs_user_data (GMainContext *conte
/* Low level functions for implementing custom main loops.
*/
GMainContext *g_main_context_new (GThread *thread);
void g_main_context_destroy (GMainContext *context);
gboolean g_main_context_prepare (GMainContext *context,
gint *priority);
gint g_main_context_query (GMainContext *context,