summaryrefslogtreecommitdiff
path: root/giounix.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-12-18 02:23:33 +0000
committerTim Janik <timj@src.gnome.org>1998-12-18 02:23:33 +0000
commit8be41eae4d0077069ecf77a8904b5f624d5ea5ff (patch)
treeb8aeb42ce82d6fd6b2c90bcfed2b70742d2f8dfa /giounix.c
parentc3c1b2edc010c08ece04d8c48abc0074e1162d2d (diff)
downloadglib-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/giounix.c b/giounix.c
index 8f0b8edb0..5e62ed85b 100644
--- a/giounix.c
+++ b/giounix.c
@@ -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);
}