RE: copy text the to the clipboard



It depends on the widget.  For simple text, gtk_editable_copy_clipboard()
might be what you need. Or there's something similar for GtkTextView.

For custom data you'll need to understand the concepts. Here are some C++
examples:
http://www.gtkmm.org/gtkmm2/docs/tutorial/html/ch16.html

Murray Cumming
murrayc usa net
www.murrayc.com 

> -----Original Message-----
> From: Ben LeMasurier [mailto:uidzer0 hotmail com] 
> Sent: Donnerstag, 3. April 2003 23:56
> To: gtk-list gnome org
> Subject: copy text the to the clipboard
> 
> 
> Hey everyone,
> 
> I am stuck here, i am trying to have a simple button that 
> once clicked 
> copies whatever text is selected on the window. I have 
> everything done such 
> as the button and whatnot but I am stuck trying to create a 
> way to copy data 
> to the clipboard. I have read the gtk documentation on this 
> but it was a 
> little vague or at least over my  head. Can anyone give me a 
> quick example 
> of how this is performed?
> 
> _________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 



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