shouldn't gtk_main_iteration() return gboolean?
- From: Yasushi Shoji <yashi yashi com>
- To: gtk-devel-list gnome org
- Subject: shouldn't gtk_main_iteration() return gboolean?
- Date: Sun, 20 Aug 2000 07:47:31 -0400
hi,
could someone explain me why gtk_main_iteration() returns gint rather
than gboolean?
in cvs, gtkmain.c:gtk_main_iteration() is as follows:
> gint
> gtk_main_iteration (void)
> {
> GDK_THREADS_LEAVE ();
> g_main_iteration (TRUE);
> GDK_THREADS_ENTER ();
>
> if (main_loops)
> return !g_main_is_running (main_loops->data);
> else
> return TRUE;
> }
this function returns TRUE or the value returned by
g_main_is_running() which returns gboolean as defined in glib/gmain.c:
> gboolean
> g_main_is_running (GMainLoop *loop)
> {
> g_return_val_if_fail (loop != NULL, FALSE);
>
> return loop->is_running;
> }
Am I missing something?
regards,
--
yashi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]