changeset 8:da4347585d4f

Removed non-glib classes
author unexist
date Mon, 14 Dec 2009 00:34:06 +0100
parents 18b3fbf82cc4
children 9d46c05b49f6
files subtly/glib.rb
diffstat 1 files changed, 1 insertions(+), 44 deletions(-) [+]
line wrap: on
line diff
--- a/subtly/glib.rb	Mon Dec 14 00:33:43 2009 +0100
+++ b/subtly/glib.rb	Mon Dec 14 00:34:06 2009 +0100
@@ -11,49 +11,6 @@
 require "ffi"
 
 module Subtly
-  module GThread
-    extend FFI::Library
-
-    ffi_lib("libgthread-2.0")
-
-    ## ffi_init
-    # Init thread system
-    #
-    # @param  [Pointer, #read]  Just don't use, #GThreadFunctions
-    ##
-
-    attach_function(:ffi_init,
-      :g_thread_init, [ :pointer ], :void
-    )
-  end
-
-  module GObject
-    extend FFI::Library
-
-    ffi_lib("libgobject-2.0")
-
-    # Callback type
-    callback :g_callback2, [ :pointer, :pointer ], :void
-    callback :g_callback3, [ :pointer, :int, :pointer ], :void
-    callback :g_callback4, [ :pointer, :string, :string, :pointer ], :void
-
-    ## ffi_signal_connect
-    # Add signal callback
-    #
-    # @param  [Pointer, #read]  Widget to attach callback
-    # @param  [String,  #read]  Signal name
-    # @param  [Pointer, #read]  Callback function
-    # @param  [Pointer, #read]  Callback data
-    ##
-
-    attach_function(:ffi_signal_connect2,
-      :g_signal_connect_data, [ :pointer, :string, :g_callback2, :pointer, :pointer, :int ], :ulong
-    )
-    attach_function(:ffi_signal_connect3,
-      :g_signal_connect_data, [ :pointer, :string, :g_callback3, :pointer, :pointer, :int ], :ulong
-    )
-    attach_function(:ffi_signal_connect4,
-      :g_signal_connect_data, [ :pointer, :string, :g_callback4, :pointer, :pointer, :int ], :ulong
-    )
+  module Glib
   end
 end