Re: gtk_events_pending return value
- From: Johannes =?utf-8?b?V2Vpw59s?= <johannes weissl gmx de>
- To: gtk-list gnome org
- Subject: Re: gtk_events_pending return value
- Date: Tue, 6 Jan 2004 22:08:58 +0100
On 2004-01-06 09:05:04, Shaun McCance wrote:
> typedef gint gboolean;
>
> gboolean is just a convenience type. Nothing in that snippet of code
> forces result into being only 0 or 1.
I know that, but I traced back:
gint gtk_events_pending (void)
returns g_main_context_pending (NULL)
gboolean g_main_context_pending (GMainContext *context)
returns g_main_context_iterate (context, FALSE, FALSE, G_THREAD_SELF)
static gboolean g_main_context_iterate (GMainContext *context,
gboolean block,
gboolean dispatch,
GThread *self)
returns FALSE or g_main_context_prepare (context, &max_priority)
gboolean g_main_context_prepare (GMainContext *context,
gint *priority)
returns FALSE or (n_ready > 0)
In addition the API documentation says:
"Returns : TRUE if any events are pending, FALSE otherwise."
--
cu,
Johannes Weißl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]