glib r7545 - in trunk: . glib
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7545 - in trunk: . glib
- Date: Fri, 26 Sep 2008 14:05:03 +0000 (UTC)
Author: matthiasc
Date: Fri Sep 26 14:05:03 2008
New Revision: 7545
URL: http://svn.gnome.org/viewvc/glib?rev=7545&view=rev
Log:
Add more docs
Modified:
trunk/ChangeLog
trunk/glib/gmain.c
Modified: trunk/glib/gmain.c
==============================================================================
--- trunk/glib/gmain.c (original)
+++ trunk/glib/gmain.c Fri Sep 26 14:05:03 2008
@@ -3346,6 +3346,10 @@
* After each call to the timeout function, the time of the next
* timeout is recalculated based on the current time and the given interval
* (it does not try to 'catch up' time lost in delays).
+ *
+ * This internally creates a main loop source using g_timeout_source_new()
+ * and attaches it to the main loop context using g_source_attach(). You can
+ * do these steps manually if you need greater control.
*
* Return value: the ID (greater than 0) of the event source.
**/
@@ -3397,6 +3401,10 @@
* g_timeout_add_seconds() function; this function allows for more
* optimizations and more efficient system power usage.
*
+ * This internally creates a main loop source using g_timeout_source_new()
+ * and attaches it to the main loop context using g_source_attach(). You can
+ * do these steps manually if you need greater control.
+ *
* Return value: the ID (greater than 0) of the event source.
**/
guint
@@ -3443,6 +3451,11 @@
* and you don't require the first timer exactly one second from now, the
* use of g_timeout_add_seconds() is preferred over g_timeout_add().
*
+ * This internally creates a main loop source using
+ * g_timeout_source_new_seconds() and attaches it to the main loop context
+ * using g_source_attach(). You can do these steps manually if you need
+ * greater control.
+ *
* Return value: the ID (greater than 0) of the event source.
*
* Since: 2.14
@@ -3482,9 +3495,11 @@
* it returns %FALSE, at which point the timeout is automatically destroyed
* and the function will not be called again.
*
- * See g_timeout_add_seconds_full() for the differences between
- * g_timeout_add() and g_timeout_add_seconds().
- *
+ * This internally creates a main loop source using
+ * g_timeout_source_new_seconds() and attaches it to the main loop context
+ * using g_source_attach(). You can do these steps manually if you need
+ * greater control. Also see g_timout_add_seconds_full().
+ *
* Return value: the ID (greater than 0) of the event source.
*
* Since: 2.14
@@ -3805,6 +3820,11 @@
*
* GLib supports only a single callback per process id.
*
+ * This internally creates a main loop source using
+ * g_child_watch_source_new() and attaches it to the main loop context
+ * using g_source_attach(). You can do these steps manually if you
+ * need greater control.
+ *
* Return value: the ID (greater than 0) of the event source.
*
* Since: 2.4
@@ -3854,6 +3874,11 @@
*
* GLib supports only a single callback per process id.
*
+ * This internally creates a main loop source using
+ * g_child_watch_source_new() and attaches it to the main loop context
+ * using g_source_attach(). You can do these steps manually if you
+ * need greater control.
+ *
* Return value: the ID (greater than 0) of the event source.
*
* Since: 2.4
@@ -3935,6 +3960,10 @@
* events pending. If the function returns %FALSE it is automatically
* removed from the list of event sources and will not be called again.
*
+ * This internally creates a main loop source using g_idle_source_new()
+ * and attaches it to the main loop context using g_source_attach().
+ * You can do these steps manually if you need greater control.
+ *
* Return value: the ID (greater than 0) of the event source.
**/
guint
@@ -3971,6 +4000,10 @@
* returns %FALSE it is automatically removed from the list of event
* sources and will not be called again.
*
+ * This internally creates a main loop source using g_idle_source_new()
+ * and attaches it to the main loop context using g_source_attach().
+ * You can do these steps manually if you need greater control.
+ *
* Return value: the ID (greater than 0) of the event source.
**/
guint
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]