Re: my program has these problems
- From: 顺珉 吴 <moody_blur yahoo com cn>
- To: Muthiah Annamalai <dearestchum yahoo co in>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: my program has these problems
- Date: Fri, 20 May 2005 11:55:45 +0800 (CST)
Hi Muthiah:
Thanks for your reply.
About the question 4, I am not sure whether the
libglade is used if I use the Glade to build my GUI?
--- Muthiah Annamalai <dearestchum yahoo co in>写道:
Hi!
Ill try to answer some of your questions... that
seem
quite simple..
2.I still cann't make the g_thread work. I think I
need tips to find which kind of code may made the
thread init fail.
After you call gtk_init() call g_thread_init().
That works for me!
3.Now I set a global variable to tell a thread
stop.
And the thread have to check the variable in its
forever loop. Is there any better way to control
the
thread?
I think there are things like Mutex, Locks etc..
sync primitives.
4.I find someone use the "lookup_widget" to get
widget handle?
It is shame to say I have set all widget needs
runtime control in a global structure in my
code(about 25 pointer together).
But I can't find detail info about this function,
can anyone give me a doc link?
Instead of lookup_widget, use
glade_xml_get_widget(XmlRootPtr,"button_1") from
LibGlade.
Cheers
Muthu
lookup_widget(
Discover Yahoo!
Have fun online with music videos, cool games, IM
and more. Check it out!
http://discover.yahoo.com/online.html
_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]