[Glade-users] Sending events (somewhat OT)
- From: zephod at cfl.rr.com (Steve Blackwell)
- Subject: [Glade-users] Sending events (somewhat OT)
- Date: Sat, 14 Mar 2009 10:51:38 -0400
His Majesty <balakkvj at gmail.com> wrote:
Obviously the gtk_main expects a return.
You can stop this behaviour using g_main_context_iteration
(NULL,FALSE);
See if this works for you.
I don't think I'm understanding you correctly.
If I use the line you suggest, the main program will exit normally
after one call to g_main_context_iteration(). If I put
g_main_context_iteration() in a loop, it will suck up all the cpu time
because it is not blocking.
Perhaps I can rephrase my original question as:
"Why does gtk_main() respond differently to a client-event than it does
to a mouse or keyboard event?"
Here is the code fragment that I'm using to send the event.
event_log_dialog is the top level window that contains the TreeView
widget that I want my data displayed in.
client_msg = gdk_event_new( GDK_CLIENT_EVENT );
gtk_propagate_event ( event_log_dialog, client_msg );
Steve.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]