clipboard functions
authorAndrey Kutejko <andy128k@gmail.com>
Mon, 4 Jan 2010 19:11:33 +0000 (21:11 +0200)
committerDmitry Kalyanov <Kalyanov.Dmitry@gmail.com>
Fri, 22 Jan 2010 10:47:57 +0000 (13:47 +0300)
gtk/cl-gtk2-gtk.asd
gtk/gtk.clipboard.lisp [new file with mode: 0644]

index e548b8c..52871c3 100644 (file)
@@ -64,6 +64,7 @@
                (:file "gtk.link-button")
                (:file "gtk.list-store")
                (:file "gtk.tree-store")
+               (:file "gtk.clipboard")
                
                (:file "gtk.main-loop-events")
                
diff --git a/gtk/gtk.clipboard.lisp b/gtk/gtk.clipboard.lisp
new file mode 100644 (file)
index 0000000..846e107
--- /dev/null
@@ -0,0 +1,12 @@
+(in-package :gtk)
+
+(defcfun gtk-clipboard-set-text :void
+  (clipboard g-object)
+  (text :string)
+  (len :int))
+
+(defun clipboard-set-text (clipboard text)
+  (gtk-clipboard-set-text clipboard text -1))
+
+(export 'clipboard-set-text)
+