Re: Question on gtk_label_set_selectable

2007-10-20 Thread Chris Vine
On Fri, 2007-10-19 at 16:54 +0200, Gian Mario Tagliaretti wrote: 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.

Re: Question on gtk_label_set_selectable

2007-10-20 Thread Chris Vine
On Sat, 2007-10-20 at 10:11 +0100, Chris Vine wrote: On Fri, 2007-10-19 at 16:54 +0200, Gian Mario Tagliaretti wrote: 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

Re: Question on gtk_label_set_selectable

2007-10-20 Thread Gregory Hosler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Vine wrote: On Sat, 2007-10-20 at 10:11 +0100, Chris Vine wrote: On Fri, 2007-10-19 at 16:54 +0200, Gian Mario Tagliaretti wrote: 2007/10/19, David Nečas (Yeti) [EMAIL PROTECTED]: On Fri, Oct 19, 2007 at 03:06:55PM +0200, Gian Mario

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

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