How to forbid people to change GtkCheckButton's status manually?

2009-08-26 Thread donglongchao
Hi, all I want to use some GtkCheckButton to display some status in my app.But I want to forbid my customer to change these checkbuttons' status(choosed or not ) by their hands,and they can only be changed by my app itself according to some values,etc..I want to know how to do this.Will some

Re:inter process communication

2009-07-10 Thread donglongchao
It depends on what you need and what you want to do.If you tell us some more details about your requirments,it may becomes easier to decide. Wish you happy. Longchao 在2009-07-10,Garth's KidStuff garthskidst...@gmail.com 写道: Hey All, What's the best way to communicate between 2 applications?

Do I need to use rwlock?

2009-06-10 Thread donglongchao
Hi,all I have two threads.The first one is in charge of change data,and the second one is in charge of refresh the GUI based on the data changed by the first thread.For example,the second one will make a entry sensitive if a bool variable is changed to be true by the first thread. And what I

Re:Closing a window.

2009-05-28 Thread donglongchao
Hi, You should read the comment first.For example, /* If you return FALSE in the delete_event signal handler, * GTK will emit the destroy signal. Returning TRUE means * you don't want the window to be destroyed. * This is useful for popping up 'are you sure you want to quit?'

How to set a window filled the whole screen when we start the window?

2009-05-25 Thread donglongchao
Hi,all I want to know that when I start a window,how can I set it's default size to fill the whole screen? I have find some functions to complete this ,but they all need me to pass the width and the height to the function as arguments.Is there any function which is able to do this without width

Re: How to set a window filled the whole screen when we start the window?

2009-05-25 Thread donglongchao
Thank you very much.That is just what I need. I am not very familiar with the API manual. 在2009-05-25,Andrew Cowie and...@operationaldynamics.com 写道: On Mon, 2009-05-25 at 14:20 +0800, donglongchao wrote: I want to know that when I start a window,how can I set it's default size to fill

How to create two different windows in one .glade file?

2009-05-25 Thread donglongchao
Hi,all I want to know how to create  two (or more) windows(top window,I mean) in one .glade file.That is how to integrate more than one windows into one .glade file.Maybe we can do it at the beginning we design the UI,but I do not know how to do it. I use Anjuta 2.4.1,with glade 3.4.5 inside.

Re: How to set a window filled the whole screen when we start the window?

2009-05-25 Thread donglongchao
Thanks for your advice.Because there are too many widgets in the start window,I think it is necessary to maximize it first.Maybe I should ask my customs for their suggestions. 在2009-05-25,Liam R E Quin l...@holoweb.net 写道: On Mon, 2009-05-25 at 14:20 +0800, donglongchao wrote: Hi,all I

Re:Check out my photos on Facebook

2009-05-11 Thread donglongchao
oh~,it is cool... 在2009-05-11,Sandeep Cashyap invite+kjdmu_kd~...@facebookmail.com 写道: Hi Gtk-app-devel-list, I invited you to join Facebook a while back and wanted to remind you that once you join, we'll be able to connect online, share photos, organize groups and

Re: How to send user_data into callback function by glade only?

2009-04-15 Thread donglongchao
2009-04-16,Tristan Van Berkom t...@gnome.org : On Tue, Apr 14, 2009 at 10:46 AM, donglongchao donglongc...@163.com wrote: [...] And I want to show the value of myspinbutton by pass its point to callback function.But every time I click the button there is no response.Just left

Re: How to send user_data into callback function by glade only?

2009-04-14 Thread donglongchao
在2009-04-11,Tadej Borovšak tadeb...@gmail.com 写道: 2009/4/11 donglongchao donglongc...@163.com: Hi all, I have a question using glade(3.4.5). In the signal tab,there is a item user_data.I want to know how to fill and what to fill to send the data I filled into the callback function, without

Re: RadioMenuItem

2009-04-13 Thread donglongchao
you are always welcome.:-) 在2009-04-13,Paolo pra...@gmail.com 写道: Sorry. I've fix my problem. Thanks 2009/4/13 Paolo pra...@gmail.com How can I apply gtk_toggle_button_get_active() function? I have a radiomenuitem and the function needs a togglebutton 2009/4/13 donglongchao donglongc

Re:RadioMenuItem

2009-04-12 Thread donglongchao
Hi, Because they are in the same group,and if one is selected(or toggled), then before it send a toggled signal,the other one which becomes unselected will also send a toggled signal. So you can use if (gtk_toggle_button_get_active(button)) to check the state of button in your callback functions