From: Kouhei S. <nu...@co...> - 2017-11-23 09:17:18
|
Kouhei Sutou 2017-11-23 18:15:56 +0900 (Thu, 23 Nov 2017) New Revision: 0430513a97475b1ea5e93e79b59d0bd54459bb91 https://github.com/ruby-gnome2/ruby-gnome2/commit/0430513a97475b1ea5e93e79b59d0bd54459bb91 Message: gdk3: add workaround for GC crash Example: [BUG] rb_gc_mark(): 0x00005555580bb7f8 is T_ZOMBIE Modified files: gdk3/lib/gdk3/screen.rb Modified: gdk3/lib/gdk3/screen.rb (+9 -1) =================================================================== --- gdk3/lib/gdk3/screen.rb 2017-11-20 00:27:04 +0900 (0e1acebde) +++ gdk3/lib/gdk3/screen.rb 2017-11-23 18:15:56 +0900 (5d06fad25) @@ -1,4 +1,4 @@ -# Copyright (C) 2015 Ruby-GNOME2 Project Team +# Copyright (C) 2015-2017 Ruby-GNOME2 Project Team # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -16,6 +16,14 @@ module Gdk class Screen + class << self + alias_method :default_raw, :default + def default + # TODO: Remove me when GLib::Object supports RUBY_TYPED_FREE_IMMEDIATELY. + @@default ||= default_raw + end + end + alias_method :get_setting_raw, :get_setting def get_setting(key, type=nil) value = GLib::Value.new(type || GLib::Type::STRING) |