Permalink
Browse files

added clipboard handling infrastructure

git-svn-id: https://gtknode.googlecode.com/svn/trunk@29 9999ab98-4a1b-0410-ba6a-d90168ca9a37
  • Loading branch information...
1 parent 18b396e commit 8081211d9b0e898b97ffb68da39fd7c08d050ce9 @massemanet committed Dec 7, 2006
Showing with 14 additions and 0 deletions.
  1. +4 −0 c_src/gtknode_structs.c
  2. +8 −0 priv/examples/clipboard.txt
  3. +1 −0 priv/generator/gdk_black.txt
  4. +1 −0 priv/generator/gdk_white.txt
View
@@ -1,5 +1,9 @@
#include "gtknode.h"
+void* gn_construct_GdkAtom() {
+ return (void*) g_new0(GdkAtom,1);}
+void* gn_construct_GtkClipboard() {
+ return (void*) gtk_clipboard_get(GDK_SELECTION_PRIMARY);}
void* gn_construct_GtkTextIter() {
return (void*) g_new0(GtkTextIter,1);}
void* gn_construct_GtkTreeIter() {
@@ -0,0 +1,8 @@
+f().
+gtknode:start(fooey).
+Clipboard0 = gtknode:cmd(fooey,'Gdk_atom_intern',["NONE",false]).
+Clipboard1 = gtknode:cmd(fooey,'Gdk_atom_intern',["PRIMARY",false]).
+Clipboard2 = gtknode:cmd(fooey,'Gdk_atom_intern',["CLIPBOARD",false]).
+gtknode:cmd(fooey,'Gtk_clipboard_set_text',[Clipboard0,"zpeti.\n",-1]).
+gtknode:cmd(fooey,'Gtk_clipboard_clear',[Clipboard0]).
+gtknode:stop(fooey).
@@ -0,0 +1 @@
+gdk_atom_name
@@ -2,4 +2,5 @@ gdk/gdkcolor.h
gdk/gdkgc.h
gdk/gdkdrawable.h
gdk/gdkpixmap.h
+gdk/gdkproperty.h
gdk/gdkwindow.h

0 comments on commit 8081211

Please sign in to comment.