Revert "gtk.ffi: Find the right gtk library in a startup-hook. Necessary because gtk is not in the same place on varius distros, so just find it on demand. Fixes #1185."

This reverts commit 0ef942e400.
db4
Doug Coleman 2014-11-05 12:03:05 -08:00
parent 0ef942e400
commit 8c3a817706
1 changed files with 6 additions and 8 deletions

View File

@ -2,8 +2,8 @@
! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.c-types alien.destructors alien.libraries
alien.libraries.finder alien.syntax assocs gobject-introspection
gobject-introspection.standard-types init kernel pango.ffi
system vocabs ;
gobject-introspection.standard-types kernel pango.ffi system
vocabs ;
IN: gtk.ffi
<<
@ -14,12 +14,10 @@ IN: gtk.ffi
LIBRARY: gtk
<<
[
"gtk" {
{ linux "gtk-x11-2.0" }
{ windows "libgtk-win32-2.0-0" }
} os of [ find-library cdecl add-library ] [ drop ] if*
] "find-gtk" add-startup-hook
"gtk" {
{ linux "gtk-x11-2.0" }
{ windows "libgtk-win32-2.0-0" }
} os of [ find-library cdecl add-library ] [ drop ] if*
>>
IMPLEMENT-STRUCTS: GtkTreeIter ;