Class: GladeXML
- Inherits:
-
Object
- Object
- GladeXML
- Defined in:
- lib/rudebug/gtk-patch.rb
Overview
This files contains fixes and enhancements to the GTK library
Instance Method Summary collapse
- #guard_source_from_gc(source) ⇒ Object
-
#guard_source_from_gc_without_nil_check ⇒ Object
There’s a bug in GladeXML: It tries to guard all elements that were loaded from a glade file against the GC by holding a reference so they won’t go away.
Instance Method Details
#guard_source_from_gc(source) ⇒ Object
9 10 11 |
# File 'lib/rudebug/gtk-patch.rb', line 9 def guard_source_from_gc(source) guard_source_from_gc_without_nil_check(source) unless source.nil? end |
#guard_source_from_gc_without_nil_check ⇒ Object
There’s a bug in GladeXML: It tries to guard all elements that were loaded from a glade file against the GC by holding a reference so they won’t go away. However, it can try to reference objects which weren’t loaded when we supply a root argument. This ought to protect against that case. – flgr
8 |
# File 'lib/rudebug/gtk-patch.rb', line 8 alias :guard_source_from_gc_without_nil_check :guard_source_from_gc |