Re: [Basic Glib Questions/Help] Unable to create GSource
- From: Michael Torrie <torriem chem byu edu>
- To: gtk-app-devel-list gnome org
- Subject: Re: [Basic Glib Questions/Help] Unable to create GSource
- Date: Sun, 21 Dec 2003 15:34:23 -0700
On Sun, 2003-12-21 at 15:27, Ryan McDougall wrote:
Any help is appreciated!
Afraid you'll need to post the source code. Can't do anything with just
a binary.
It would also help if you told us specifically what you want
accomplish. Your description was a bit vague. My understanding of the
glib event loop is that unless you have written a console driver (not
the write word) to push events into the glib loop (much as gtk brings
X11 events into the loop), you'll probably not be able to use the glib
main event loop in the manner you are seeking. In other words you might
have to use the old
while (g_main_context_pending(context))
g_main_context_iteration(context, may_block)
trick so that you can keep control of the program in your code.
Remember that glib's event loop takes command. You're program flow is
no longer linear. Typically console-based programs are intended to be
linear.
Michael
Cheers,
Ryan
--
Michael Torrie <torriem chem byu edu>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]