#include <stdio.h>
#include <gtk/gtk.h>


int main(int argc, char *argv[]) {
    gtk_init(&argc, &argv);

    GdkAtom selection = gdk_atom_intern_static_string("_TEST_SPECIAL_CLIPBOARD");
    GtkClipboard *clipboard = gtk_clipboard_get(selection);
    
    if (!clipboard) {
        printf("no clipboard :-(\n");
        return -1;
    }
    
    GdkAtom *targets;
    gint n_targets;
    
    gtk_clipboard_wait_for_targets(clipboard, &targets, &n_targets);
    
    return 0;
}
