Re: Question about suspending g_io_add_watch

2007-05-17 Thread Robin Wenninger
Hi,

Robin Wenninger schrieb:
 work. Is there any other way to suspend the call of refresh() or what
 am I doing wrong here?

why does one always find the error AFTER the post is out?

rw
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Question about suspending g_io_add_watch

2007-05-16 Thread Robin Wenninger
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


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list