I'm calling the following function to try to clear the system clipboard:
GtkClipboard *clipboard;
clipboard = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD);
gtk_clipboard_clear(clipboard);
however it's not cleaning anything. I've searched the Gnome and GTK+ documentations and countless sample code snippets and I've no idea how to do this.
so my question, how do you clear the system (linux, gnome) clipboard by code? Thanks!