Re: Maybe I need to use threads. I've been using gtk_main_iteration_do() but having problems

2007-10-19 Thread Tristan Van Berkom
On Tue, 2007-10-16 at 16:12 -0600, Jeff Eberl wrote: [...] First is that the display doesn't do anything when my program is doing it's thing. So it looks like it freezes. I'm okay with that. I've never used threads before, and I'm not sure this is the best project to start with. ofcourse

Re: Question on gtk_label_set_selectable

2007-10-19 Thread Gian Mario Tagliaretti
2007/10/19, David Nečas (Yeti) [EMAIL PROTECTED]: On Fri, Oct 19, 2007 at 03:06:55PM +0200, Gian Mario Tagliaretti wrote: You can also set the can-focus property to FALSE on the label which will be still selectable. Not exactly. It will be only selectable *with mouse*. Good point David,

Re: Question on gtk_label_set_selectable

2007-10-19 Thread Yeti
On Fri, Oct 19, 2007 at 03:06:55PM +0200, Gian Mario Tagliaretti wrote: You can also set the can-focus property to FALSE on the label which will be still selectable. Not exactly. It will be only selectable *with mouse*. Yeti -- http://gwyddion.net/

Re: Question on gtk_label_set_selectable

2007-10-19 Thread Gian Mario Tagliaretti
2007/10/19, David Nečas (Yeti) [EMAIL PROTECTED]: Your label the first widget in the window that accepts focus (selectable labels can receive focus, unlike normal labels). Therefore the label will get focus, which selects its text -- at least this seems to be the default behaviour. If you

Re: Question on gtk_label_set_selectable

2007-10-19 Thread Gregory Hosler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Ne?as (Yeti) wrote: On Fri, Oct 19, 2007 at 07:44:19PM +0800, Gregory Hosler wrote: Gregory Hosler wrote: Hi all, I have labels, which I wish to allow the user to select the text for the purpose of cut/pasting. So I set

Maybe I need to use threads. I've been using gtk_main_iteration_do() but having problems

2007-10-19 Thread Jeff Eberl
To start, I'm using C++, Suse 10.1. I'm writing programs that mostly do work without the user's interaction. But I want to make a simple gui class to make simple gui's with limited capability. Basically, I have some programs that don't have use gtk at all, and already have their own structure

Re: Question on gtk_label_set_selectable

2007-10-19 Thread Yeti
On Fri, Oct 19, 2007 at 07:44:19PM +0800, Gregory Hosler wrote: Gregory Hosler wrote: Hi all, I have labels, which I wish to allow the user to select the text for the purpose of cut/pasting. So I set gtk_label_set_selectable (GTK_LABEL (dlabel), 1) on the label. The

Re: Question on gtk_label_set_selectable

2007-10-19 Thread Gregory Hosler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregory Hosler wrote: Hi all, I have labels, which I wish to allow the user to select the text for the purpose of cut/pasting. So I set gtk_label_set_selectable (GTK_LABEL (dlabel), 1) on the label. The problem I have now is that

How to free the memory occupied by window??

2007-10-19 Thread Bin Chen
Hi, A strange problem that I can't free the memory allocated for window, I take the example in notebook.c, it is in examples directory, and add some profile function in it, the result shows: binch24287 0.0 0.4 11624 4348 pts/0S+ 16:49 0:00