Question about "suspending" g_io_add_watch

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),
/* 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]