How to send user_data into callback function by glade only?

2009-04-10 Thread donglongchao
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 using gtk_signal_connect(..) or something like that,just and only use glade itself and glade

How to send user_data into callback function by glade only?

2009-04-10 Thread donglongchao
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 using gtk_signal_connect(..) or something like that,just and only use glade itself and glade

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 func

Re: RadioMenuItem

2009-04-13 Thread donglongchao
you are always welcome.:-) 在2009-04-13,Paolo 写道: Sorry. I've fix my problem. Thanks 2009/4/13 Paolo How can I apply gtk_toggle_button_get_active() function? I have a radiomenuitem and the function needs a togglebutton 2009/4/13 donglongchao Hi, Because they are in the same group,a

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

2009-04-14 Thread donglongchao
在2009-04-11,"Tadej Borovšak" 写道: >2009/4/11 donglongchao : >> 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 da

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

2009-04-15 Thread donglongchao
2009-04-16,"Tristan Van Berkom" : >On Tue, Apr 14, 2009 at 10:46 AM, donglongchao 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 l

Re:Check out my photos on Facebook

2009-05-11 Thread donglongchao
oh~,it is cool... 在2009-05-11,"Sandeep Cashyap" 写道: >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 >events, and more. > >Thanks, >S

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

2009-05-24 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" 写道: >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 fi

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. S

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" 写道: >On Mon, 2009-05-25 at 14:20 +0800, donglongchao wrote: >>

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?'

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

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" 写道: >Hey All, >What's the best way to communicate between 2 applications? And can you >point

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 o