changeset 1:60b9314c5115

Merged into gtk.rb
author unexist
date Sun, 13 Dec 2009 04:29:19 +0100
parents 87b46f01d08d
children d4c65ef43e0f
files subtly/webkit.rb
diffstat 1 files changed, 0 insertions(+), 56 deletions(-) [+]
line wrap: on
line diff
--- a/subtly/webkit.rb	Sat Dec 12 22:33:59 2009 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,56 +0,0 @@
-##
-# @package browser
-#
-# @file Webkit bindings
-# @author Christoph Kappel <unexist@dorfelite.net>
-# @version $Id$
-#
-# This program can be distributed under the terms of the GNU GPL.
-##
-
-require "ffi"
-
-module Subtly
-  module Webkit
-    class View # {{{
-      attr_accessor :widget
-
-      extend FFI::Library
-
-      ffi_lib("libwebkit-1.0")
-
-      def initialize
-        @widget = Subtly::Webkit::View.ffi_new
-      end
-
-      def uri=(uri)
-        Subtly::Webkit::View.ffi_load_uri(@widget, uri)
-      end
-      
-      def to_wid
-        @widget
-      end
-
-      ## ffi_new
-      # Create webkit view
-      #
-      # @return [Pointer] Return the new view
-      ##
-
-      attach_function(:ffi_new,
-        :webkit_web_view_new, [ ], :pointer
-      )
-
-      ## load_uri
-      # Load given uri in view
-      #
-      # @param  [Pointer, #read]  Webkit view, #GtkWidget
-      # @param  [String, #read]   Uri to load
-      ##
-
-      attach_function(:ffi_load_uri,
-        :webkit_web_view_load_uri, [ :pointer, :string ], :void
-      )
-    end # }}}
-  end
-end