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 [EMAIL PROTECTED] www.murrayc.com > -----Original Message----- > From: Ben LeMasurier [mailto:[EMAIL PROTECTED] > Sent: Donnerstag, 3. April 2003 23:56 > To: [EMAIL PROTECTED] > 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 > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-list > _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
