From ee685b003e3b8dfe50670417dddd7422b9d2a6f0 Mon Sep 17 00:00:00 2001 From: Sven Herzberg Date: Wed, 24 Sep 2008 13:44:27 +0000 Subject: [PATCH] Be a little more explcit in the docs. Includes Owen's requested changes. 2008-09-24 Sven Herzberg 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 | 8 ++++++++ glib/gmain.c | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 254578d..553f746 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-09-24 Sven Herzberg + + 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 * glib/glib.h: #include diff --git a/glib/gmain.c b/glib/gmain.c index 0b30c5b..42f7828 100644 --- a/glib/gmain.c +++ b/glib/gmain.c @@ -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. **/ -- 2.7.4