Hello,
Would someone be so kind as to shed some light for me on how I might do
the following?
1. I have 2 Threads running (Main & one underneath main)
2. In the Sub Thread started by Main, it needs to send or make available
a double so that the Main's Dialog box will display that double.
I am attempting to pass data from one thread to another thread - that
works - and I need for the Dialog window - instantiated separately from
the Main GUI to display that data & update its interface.
I can pass the data to the Dialog box - no problem. But every time I
attempt to perform a GUI update using the following code:
while( Gtk::Main::events_pending() )
Gtk::Main::iteration(false);
I get gtk errors indicating that there is another thread already
executing this code - there is, it's Main. & then the application will
eventually crash.
So, I do not understand how to properly update a Dialog Box, i.e.
refresh its screen. However, whenever I pass the mouse over the Dialog
box, it refreshes & I see my double value updated in my gtk::entry
field. However, I must keep moving the mouse to see this update &
that's driving me nutts!
Thanks for the help ahead of time! :-)
--
Sincerely, Allen
Gene Allen Saucier, Jr
Senior Software Engineer
CAS, Inc
100 Quality Circle
Huntsville, AL 35806
or
PO Box 11190
Huntsville, AL 35814
(256) 922-6453 (w)
"As for I and my house, we shall follow the Lord" Joshua 25:14
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list