Add g_main_context_ref_thread_default()
authorDan Winship <danw@gnome.org>
Wed, 5 Oct 2011 14:46:57 +0000 (10:46 -0400)
committerDan Winship <danw@gnome.org>
Fri, 7 Oct 2011 14:14:34 +0000 (10:14 -0400)
commit59f1f5465571bac403357b59cf7bfe2723356a37
tree20363b914b7830176c41c22a753035d558eb1091
parentd91769b64160353b4f9861cb68a97a0171b323ad
Add g_main_context_ref_thread_default()

Add g_main_context_ref_thread_default(), which always returns a
reffed GMainContext, rather than sometimes returning a (non-reffed)
GMainContext, and sometimes returning NULL. This simplifies the
bookkeeping in any code that needs to keep a reference to the
thread-default context for a while.

https://bugzilla.gnome.org/show_bug.cgi?id=660994
15 files changed:
docs/reference/glib/glib-sections.txt
gio/gdbus-2.0/codegen/codegen.py
gio/gdbusconnection.c
gio/gdbusinterfaceskeleton.c
gio/gdbusnameowning.c
gio/gdbusnamewatching.c
gio/gdbusserver.c
gio/gfilemonitor.c
gio/gioscheduler.c
gio/gsettings.c
gio/gsimpleasyncresult.c
gio/gtlsinteraction.c
glib/glib.symbols
glib/gmain.c
glib/gmain.h