Sha256: 29ea00d466c7757f2b4e8ee63dc1e436071e886cd63cdb2ca4016efeb10e737c

Contents?: true

Size: 442 Bytes

Versions: 9

Compression:

Stored size: 442 Bytes

Contents

class Wx::RBN::RibbonPage

  # manage RibbonArtProvider for GC
  wx_set_art_provider = instance_method :set_art_provider
  define_method :set_art_provider do |prov|
    @art_provider = nil # clear any previously set
    wx_set_art_provider.bind(self).call(prov)
    if prov != get_ancestor_ribbon_bar.get_art_provider
      @art_provider = prov # keep non-wx-managed provider safe
    end
  end
  alias :art_provider= :set_art_provider

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.rc.3 lib/wx/rbn/ribbon_page.rb
wxruby3-0.9.0.pre.rc.2 lib/wx/rbn/ribbon_page.rb
wxruby3-0.9.0.pre.rc.1 lib/wx/rbn/ribbon_page.rb
wxruby3-0.9.0.pre.beta.14 lib/wx/rbn/ribbon_page.rb
wxruby3-0.9.0.pre.beta.13 lib/wx/rbn/ribbon_page.rb
wxruby3-0.9.0.pre.beta.11 lib/wx/rbn/ribbon_page.rb
wxruby3-0.9.0.pre.beta.10 lib/wx/rbn/ribbon_page.rb
wxruby3-0.9.0.pre.beta.9 lib/wx/rbn/ribbon_page.rb
wxruby3-0.9.0.pre.beta.8 lib/wx/rbn/ribbon_page.rb