openbsd-ports/devel/lua-lgi/patches/patch-lgi_override_Gtk_lua
jasper 680162c4f9 - add some patches from upstream git:
* fix uimanager demo
* make Gtk-2.0.typelib useable again
2012-08-21 09:36:19 +00:00

18 lines
819 B
Plaintext

$OpenBSD: patch-lgi_override_Gtk_lua,v 1.1 2012/08/21 09:36:19 jasper Exp $
Gtk: make Gtk-2.0.typelib usable again
https://github.com/pavouk/lgi/commit/90aa6c8491db0b2587ca094802a594bf5834fb7e
--- lgi/override/Gtk.lua.orig Tue Aug 21 11:32:54 2012
+++ lgi/override/Gtk.lua Tue Aug 21 11:33:20 2012
@@ -572,7 +572,8 @@ end
-- Workaround for bug in GTK+; text_column accessors don't do an extra
-- needed work which is done properly in
-- gtk_entry_completion_{set/get}_text_column
-if Gtk.get_major_version() == 3 and Gtk.get_minor_version() < 4 then
+if Gtk._version == '2.0' or (Gtk.get_major_version() == 3 and
+ Gtk.get_minor_version() < 4) then
Gtk.EntryCompletion._attribute = {
text_column = { get = Gtk.EntryCompletion.get_text_column,
set = Gtk.EntryCompletion.set_text_column }