Merge remote-tracking branch 'andy128k/master'
[cl-gtk2.git] / doc / glib.ref.texi
blob276ff3fa84a0095c069bd78f1e027623f8693852
1 @menu
2 * GLib Main loop::
3 @end menu
5 This is a stub for documentation
7 @node GLib Main loop
8 @chapter GLib Main loop
10 @RFunction g-source-remove
11 @lisp
12 (g-source-remove source-id)
13 @end lisp
14 @table @var
15 @item @var{source-id}
16 An integer identifier of the source.
17 @end table
19 Removes the source with the given @var{source-id} from the default main context.
21 @RConstant +g-priority-high+
22 Use this for high priority event sources. It is not used within GLib or GTK+.
24 @RConstant +g-priority-default+
25 Use this for default priority event sources. In GLib this priority is used when adding timeout functions with g_timeout_add(). In GDK this priority is used for events from the X server.
27 @RConstant +g-priority-high-idle+
28 Use this for high priority idle functions. GTK+ uses @code{(+ 10 +g-priority-high-idle+)} for resizing operations, and @code{(+ 20 +g-priority-high-idle+)} for redrawing operations. (This is done to ensure that any pending resizes are processed before any pending redraws, so that widgets are not redrawn twice unnecessarily.)
30 @RConstant +g-priority-default-idle+
31 Use this for default priority idle functions. In GLib this priority is used when adding idle functions with g_idle_add().
33 @RConstant +g-priority-low+
34 Use this for very low priority background tasks. It is not used within GLib or GTK+.