Code: Select all
Dim cb As gtkclipboard Ptr
cb = gtk_clipboard_get(GDK_NONE)
I get the following response from FBEDIT running 0.23 and fresh 0.24 I have tried numerous different symbols instead of GDK_NONE all with the same result.
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.
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()
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.
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.