diff options
author | Tim Janik <timj@gtk.org> | 1998-12-18 02:23:33 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-12-18 02:23:33 +0000 |
commit | 8be41eae4d0077069ecf77a8904b5f624d5ea5ff (patch) | |
tree | b8aeb42ce82d6fd6b2c90bcfed2b70742d2f8dfa /giounix.c | |
parent | c3c1b2edc010c08ece04d8c48abc0074e1162d2d (diff) | |
download | glib-8be41eae4d0077069ecf77a8904b5f624d5ea5ff.tar.gz |
new function to check whether a main loop has been quitted. (g_main_new):
Fri Dec 18 00:03:17 1998 Tim Janik <timj@gtk.org>
* glib.h:
* gmain.c:
(g_main_is_running): new function to check whether a main loop has been
quitted.
(g_main_new): added a gboolean argument to determine whether the loop
should be considered initially running or not. however, g_main_run ()
will still reset the main loops running state to TRUE upon initial
entrance.
* gmain.c:
(g_main_iterate): documented this function's purpose in 5 steps.
for step 2), flag sources as G_SOURCE_READY even if !dispatch and
check G_SOURCE_READY prior to (*prepare), so we don't call (*prepare)
on them multiple times.
Thu Dec 17 23:43:47 1998 Tim Janik <timj@gtk.org>
* gmain.c (g_main_add_poll): reordered arguments, so GPollFD* comes
first, <sigh> (sorry Snorfle, i should have let you know in the first
place).
(g_main_dispatch): stack G_HOOK_FLAG_IN_CALL flags. call source's
destructor when destroying a source.
Diffstat (limited to 'giounix.c')
-rw-r--r-- | giounix.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -276,7 +276,7 @@ g_io_unix_add_watch (GIOChannel *channel, watch->pollfd.fd = unix_channel->fd; watch->pollfd.events = condition; - g_main_add_poll (priority, &watch->pollfd); + g_main_add_poll (&watch->pollfd, priority); return g_source_add (priority, TRUE, &unix_watch_funcs, watch, user_data, notify); } |