Re: CTRL+C & GtkCtree

From: Date: Sat, 13 Mar 2004 12:54:12 +0000
Subject: Re: CTRL+C & GtkCtree
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4451@lists.php.net to get a copy of this message
I've made a little hack and managed to get it working. Here is how I did it: I've capture the key-press-event together with key-release-event and managed to find out when Ctrl+C was pressed. Then I've created a GtkEntry() in which I've insert the text that was selected and from there it went right to the clipboard with GtkEntry::copy_clipboard();. It took a while before it came to me but now it's working very well. I've tested it only on RedHat 9.0 with PHP 4.3.4 and PHP-GTK 1.0 but is should work on windows too For those of you who want the source code send me email and I'll send it to you ps: I'm very pleased of myself right now :) On Sat, 2004-03-13 at 03:46, Alan Knowles wrote: > From what I remember access to clipboard in GTK1 (especially windows) > is not very well supported (or non-existant) > > Not much help.. - but basically I wouldnt rely on it working > > Regards > Alan > > Cosmin wrote: > > I've playing around with GtkCtree and I'm stuck with the following > > thing: when I do Ctrl+C on a GtkCTreeNode the text of the node is not > > copied to the clipboard. I've searched the manual and the mailing list > > but I didn't find an answer. Is there any way I can comunicate with the > > clipboard or at least make Ctrl+C work? -- Cosmin <cosminb@as.ro>

« previous php.gtk.general (#4451) next »