Code: Select all
#Include "gtk/GTK-2.24.bi"
Dim cb As gtkclipboard Ptr
cb = gtk_clipboard_get(GDK_NONE)
I am using gtk 2.24 - long project and I am not ready to do work needed to upgrade to 3.x until next Spring.
I tried this on three different machines that I have at home and work all running windows 7 and same error occurs. The clipboard code was just entered this morning and this was first time I compiled it ever. Everything is fine and compiles and runs correctly without this code.Build error(s)
C:\Program Files (x86)\FreeBASIC\fbc -g -R -s gui "(Untitled).bas"
(Untitled).bas(3) error 40: Variable not declared, GdkAtom in 'cb = gtk_clipboard_get(GDK_NONE)'
(Untitled).bas(3) warning 1(1): Passing scalar as pointer, at parameter 1 of GTK_CLIPBOARD_GET()
Build error(s)
I have looked at the gtk...bi and gdk...bi files and find a definition of GDKATOM in terms of _GDKATOM but cannot find a definition of _GDKATOM in any file? I have the lastest GTK stuff from a download of new complete FB 0.24 system today from Sourceforge.
Is there a newer GTK 2.24 system I should be using? Any suggestions on how to fix this problem would be appreciated. I hope I have given you all the information you need and reduced the problem to as simple as possible.
Thanks, Wally