Sha256: dd3eeeae73ee8010a9ce7e4b693ed185fb4b640e1e2e74d73e08bb54246ab647

Contents?: true

Size: 548 Bytes

Versions: 16

Compression:

Stored size: 548 Bytes

Contents

# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.

class Wx::RBN::RibbonPanel

  # 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

16 entries across 16 versions & 1 rubygems

Version Path
wxruby3-1.3.1 lib/wx/rbn/ribbon_panel.rb
wxruby3-1.3.0 lib/wx/rbn/ribbon_panel.rb
wxruby3-1.2.1 lib/wx/rbn/ribbon_panel.rb
wxruby3-1.2.0 lib/wx/rbn/ribbon_panel.rb
wxruby3-1.1.2 lib/wx/rbn/ribbon_panel.rb
wxruby3-1.1.1 lib/wx/rbn/ribbon_panel.rb
wxruby3-1.1.0 lib/wx/rbn/ribbon_panel.rb
wxruby3-1.0.1 lib/wx/rbn/ribbon_panel.rb
wxruby3-0.9.8 lib/wx/rbn/ribbon_panel.rb
wxruby3-0.9.7 lib/wx/rbn/ribbon_panel.rb
wxruby3-0.9.5 lib/wx/rbn/ribbon_panel.rb
wxruby3-0.9.4 lib/wx/rbn/ribbon_panel.rb
wxruby3-0.9.3 lib/wx/rbn/ribbon_panel.rb
wxruby3-0.9.2 lib/wx/rbn/ribbon_panel.rb
wxruby3-0.9.1 lib/wx/rbn/ribbon_panel.rb
wxruby3-0.9.0 lib/wx/rbn/ribbon_panel.rb