mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 05:43:28 +02:00
Add macros for GSourceFunc return values
The boolean values to be returned by a GSourceFunc are always ambiguous, and even in case of experienced developers then can lead to confusion. The Perl bindings for GLib have two simple constants, mapping to TRUE and FALSE, that make the return values less confusing: G_SOURCE_CONTINUE and G_SOURCE_REMOVE respectively. https://bugzilla.gnome.org/show_bug.cgi?id=631413
This commit is contained in:
committed by
Ryan Lortie
parent
e5653c0050
commit
e15d5313af
@@ -446,6 +446,10 @@ G_PRIORITY_HIGH_IDLE
|
||||
G_PRIORITY_DEFAULT_IDLE
|
||||
G_PRIORITY_LOW
|
||||
|
||||
<SUBSECTION>
|
||||
G_SOURCE_CONTINUE
|
||||
G_SOURCE_REMOVE
|
||||
|
||||
<SUBSECTION>
|
||||
GMainContext
|
||||
g_main_context_new
|
||||
|
Reference in New Issue
Block a user