Be a little more explcit in the docs. Includes Owen's requested changes.
authorSven Herzberg <sven@imendio.com>
Wed, 24 Sep 2008 13:44:27 +0000 (13:44 +0000)
committerSven Herzberg <herzi@src.gnome.org>
Wed, 24 Sep 2008 13:44:27 +0000 (13:44 +0000)
2008-09-24  Sven Herzberg  <sven@imendio.com>

Be a little more explcit in the docs. Includes Owen's requested
changes.

* glib/gmain.c: improved documentation for g_source_attach() and
g_source_destroy()

svn path=/trunk/; revision=7539

ChangeLog
glib/gmain.c

index 254578d..553f746 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-09-24  Sven Herzberg  <sven@imendio.com>
+
+       Be a little more explcit in the docs. Includes Owen's requested
+       changes.
+
+       * glib/gmain.c: improved documentation for g_source_attach() and
+       g_source_destroy()
+
 2008-09-23  Michael Natterer  <mitch@imendio.com>
 
        * glib/glib.h: #include <glib/gpoll.h>
index 0b30c5b..42f7828 100644 (file)
@@ -639,7 +639,7 @@ g_source_list_remove (GSource      *source,
  * @context: a #GMainContext (if %NULL, the default context will be used)
  * 
  * Adds a #GSource to a @context so that it will be executed within
- * that context.
+ * that context. Remove it by calling g_source_destroy().
  *
  * Return value: the ID (greater than 0) for the source within the 
  *   #GMainContext. 
@@ -1364,7 +1364,8 @@ g_main_context_find_source_by_user_data (GMainContext *context,
  * g_timeout_add(), g_timeout_add_full(), g_child_watch_add(),
  * g_child_watch_add_full(), g_io_add_watch(), and g_io_add_watch_full().
  *
- * See also g_source_destroy().
+ * See also g_source_destroy(). You must use g_source_destroy() for sources
+ * added to a non-default main context.
  *
  * Return value: %TRUE if the source was found and removed.
  **/