how to update the content of a TextView from a non-GUI thread
- From: "Hao Song" <baritono gtk gmail com>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: how to update the content of a TextView from a non-GUI thread
- Date: Fri, 12 Oct 2007 12:39:35 +0800
Hi, all:
I'm writing a geometry program in Gtkmm. My program create a new thread to carry out a lengthy computation. Meanwhile, I want to show the step-by-step computation procedure in a TextView. So I need to update the content of the TextView from the computation thread. From experiences on other GUI toolkits, I figured out that it can not be done directly, and I need something like the Windows PostMessage() function. So what is the gtkmm counterpart of PostMessage()? A gtk C API is also OK.
Thanks in advance.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]