]> gitweb.factorcode.org Git - factor.git/commitdiff
images.loader.gtk: remove call to deprecated g_type_init.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 30 Nov 2016 17:21:42 +0000 (09:21 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 30 Nov 2016 17:21:42 +0000 (09:21 -0800)
basis/images/loader/gtk/gtk.factor

index 88071da3f0226192107534316bbc3384c7a8b4bd..f7280477432bd6856574a7bb967103573f567591 100644 (file)
@@ -1,22 +1,18 @@
 ! Copyright (C) 2010 Philipp Brüschweiler.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: accessors alien.c-types alien.data alien.libraries alien.syntax
-arrays assocs combinators gdk.pixbuf.ffi glib.ffi gobject.ffi grouping
-images images.loader init io kernel locals math sequences
+USING: accessors alien.c-types alien.data alien.syntax arrays
+assocs combinators gdk.pixbuf.ffi glib.ffi gobject.ffi grouping
+images images.loader io kernel locals math sequences
 specialized-arrays system unicode ;
 IN: images.loader.gtk
 SPECIALIZED-ARRAY: uchar
 
 SINGLETON: gtk-image
 
-[
-    os linux? "g_type_init" "gobject" dlsym? and [
-        ! Explicit type initialization needed for glib < 2.36.
-        g_type_init
-        { "png" "tif" "tiff" "gif" "jpg" "jpeg" "bmp" "ico" }
-        [ gtk-image register-image-class ] each
-    ] when
-] "images.loader.gtk" add-startup-hook
+os linux? [
+    { "png" "tif" "tiff" "gif" "jpg" "jpeg" "bmp" "ico" }
+    [ gtk-image register-image-class ] each
+] when
 
 <PRIVATE