Question about "suspending" g_io_add_watch
- From: Robin Wenninger <robin unixload de>
- To: gtk-app-devel-list gnome org
- Subject: Question about "suspending" g_io_add_watch
- Date: Thu, 17 May 2007 01:00:48 +0200
Hi folks,
i'm using g_io_add_watch like this:
/* SNIP */
guint result;
result = g_io_add_watch(io_chan, G_IO_IN, (GIOFunc) refresh, NULL);
g_source_set_can_recurse(g_main_context_find_source_by_id(NULL, result),
FALSE);
/* SNAP */
I'm using "g_source_set_can_recurse" because I don't want that refresh()
is called while this function is executed...but this doesn't seem to
work. Is there any other way to suspend the call of "refresh()" or what
am I doing wrong here?
Regards, rw
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]