+
+ if (data)
+ a_clipboard_copy( type, layer_type, subtype, len, data);
+
+}
+
+void a_clipboard_copy( VikClipboardDataType type, guint16 layer_type, gint subtype, guint len, guint8 * data)
+{
+ vik_clipboard_t * vc = g_malloc(sizeof(*vc) + len);
+ GtkClipboard *c = gtk_clipboard_get ( GDK_SELECTION_CLIPBOARD );
+
+ vc->type = type;
+ vc->layer_type = layer_type;
+ vc->subtype = subtype;
+ vc->len = len;
+ memcpy(vc->data, data, len);
+ g_free(data);