[NEWBIE] Setting clipboard text



I am current using the following code to store text to the default clipboard:

GtkClipboard* clip = gtk_get_clipboard_for_display(gdk_get_display_default(), GDK_SECTION_CLIPBOARD);
gtk_clipboard_set_text(clip, string, -1);

I wonder if there is a function that does the job in one stroke.





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