[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
question for signal handler
- From: "李宏伟" <blife mail china com>
- To: gtk-app-devel-list gnome org
- Subject: question for signal handler
- Date: Tue, 6 Jan 2004 11:11:16 +0800 (CST)
Hi, all:
If I want to pass two or more widget by a signal handler, what should I do?
For example, there are a button, an text entry and a tree view, if the button
is clicked, the text of the entry and the content of the tree view will be
refreshed. I have wrote:
g_signal_connect(button, "clicked", G_CALLBACK(button_clicked), data);
The problem is: how can I pass the entry and the tree view with 'data', should I create a struct to pass in as data? I have tried that way, but result
is unexpected:
"invalid unclassed pointer in cast to 'GtkWidget'"
Is there anyone who knows how to do? Thanks
gobin lee
---------------------------------------------------------------------------------
免费使用时尚通讯工具 http://ads.china.com/suna/link.html
中华网影音交友社区"X都市万人迷" http://x.china.com
我存在,因为我是中国人!中华网信天邮 http://mail.china.com
中华网企业邮箱,商务成功的标志 http://corpmail.china.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]