Created
February 28, 2012 10:49
-
-
Save mvz/1931859 to your computer and use it in GitHub Desktop.
Patch to hopefully make gir_ffi 0.2.3 work on Ubuntu 11.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 61f55004a7ca5bc56448babd2979cd81877e6144 Mon Sep 17 00:00:00 2001 | |
From: Matijs van Zuijlen <matijs@matijs.net> | |
Date: Tue, 28 Feb 2012 11:01:48 +0100 | |
Subject: [PATCH] Explicitely define GLib.strv_get_type. | |
On older GLibs, this function is not yet properly introspected. | |
--- | |
lib/ffi-glib.rb | 6 ++++++ | |
1 files changed, 6 insertions(+), 0 deletions(-) | |
diff --git a/lib/ffi-glib.rb b/lib/ffi-glib.rb | |
index 61e1fbe..63f0ebc 100644 | |
--- a/lib/ffi-glib.rb | |
+++ b/lib/ffi-glib.rb | |
@@ -38,5 +38,11 @@ module GLib | |
attach_function :g_ptr_array_add, [:pointer, :pointer], :void | |
attach_function :g_ptr_array_foreach, [:pointer, Func, :pointer], | |
:pointer | |
+ | |
+ attach_function :g_strv_get_type, [], :size_t | |
+ end | |
+ | |
+ def self.strv_get_type | |
+ Lib.g_strv_get_type | |
end | |
end | |
-- | |
1.7.9.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment