Re: GtkEntry and clipboard



On Sun, Aug 05, 2001 at 09:12:44PM -0400, Havoc Pennington wrote:
> 
> Alex Biryukov <alex vabank kiev ua> writes:
> > Does anybody know, how to copy selected text from GtkEntry to clipboard ?
> > I catch button_press_event, but selection cleared after press right
> > mouse's button before button_press event.
> > 
> 
> Call gtk_editable_copy_clipboard (GTK_EDITABLE (entry))
> 
It's fine, but when ? 
I need popup Copy/Cut/Paste menu. I tried catch "event" event for
GtkEntry, but selection is cleared before(signal "GDK_SELECTION_CLEAR" 
fired before passing to "event" handler).  

Alex.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]