Update of /cvsroot/gtk2hs/gtk2hs/gtk/scrolling
In directory sc8-pr-cvs1:/tmp/cvs-serv25460/gtk/scrolling
Modified Files:
HScrollbar.chs ScrolledWindow.chs VScrollbar.chs
Log Message:
Make compile with GHC
6.00. There are two major changes in the FFI which made me
separate everything that has to do with Foreign and Foreign.C into
a new file called general/FFI.hs. The file UTFCForeign.hs is now
obsolete as its string conversion functions are now in FFI.hs. The
nullForeignPtr function is also located here. All files now import
FFI instead of Foreign and UTFCForeign. The major changes are:
newForeignPtr now takes a pointer to a C function as
finalizer. Every destructor function is now defined differently
depending on whether the new GHC is used or not. In particular
there is now a function called free :: Ptr a -> IO () imported
from the Foreign library. In addition to that I defined a function
foreignFree which can be used as finalizer to a C data
structure. It is equivalent to free if GHC version <=5.04 is
used. The second change is that ForeignPtr are no longer accepted
as arguments to foreign calls. This change is mainly reflected in
c2hs, but also in some files which directly called functions.
Index: HScrollbar.chs
===================================================================
RCS file: /cvsroot/gtk2hs/gtk2hs/gtk/scrolling/HScrollbar.chs,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- HScrollbar.chs 5 Aug 2002 16:41:34 -0000 1.3
+++ HScrollbar.chs 9 Jul 2003 22:42:45 -0000 1.4
@@ -37,8 +37,8 @@
) where
import Monad (liftM)
-import Foreign
-import UTFCForeign
+import FFI
+
import Object (makeNewObject)
{#import Hierarchy#}
{#import Signal#}
Index: ScrolledWindow.chs
===================================================================
RCS file: /cvsroot/gtk2hs/gtk2hs/gtk/scrolling/ScrolledWindow.chs,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- ScrolledWindow.chs 8 Nov 2002 10:39:21 -0000 1.5
+++ ScrolledWindow.chs 9 Jul 2003 22:42:45 -0000 1.6
@@ -53,14 +53,13 @@
) where
import Monad (liftM)
-import Foreign
-import UTFCForeign
+import FFI
+
import Object (makeNewObject)
{#import Hierarchy#}
{#import Signal#}
import Enums (PolicyType(..), CornerType(..), ShadowType(..))
import Maybe (fromMaybe)
-import Structs (nullForeignPtr)
{# context lib="gtk" prefix="gtk" #}
Index: VScrollbar.chs
===================================================================
RCS file: /cvsroot/gtk2hs/gtk2hs/gtk/scrolling/VScrollbar.chs,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- VScrollbar.chs 5 Aug 2002 16:41:34 -0000 1.3
+++ VScrollbar.chs 9 Jul 2003 22:42:45 -0000 1.4
@@ -37,8 +37,8 @@
) where
import Monad (liftM)
-import Foreign
-import UTFCForeign
+import FFI
+
import Object (makeNewObject)
{#import Hierarchy#}
{#import Signal#}
|