Sha256: b62bc49eaed40dd6306d6cc94da4a3dd997fc3ef300292504dc54c8266dc60d2

Contents?: true

Size: 565 Bytes

Versions: 7

Compression:

Stored size: 565 Bytes

Contents

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

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

7 entries across 7 versions & 1 rubygems

Version Path
wxruby3-0.9.7-x64-mingw-ucrt lib/wx/rbn/ribbon_page.rb
wxruby3-0.9.5-x64-mingw-ucrt lib/wx/rbn/ribbon_page.rb
wxruby3-0.9.4-x64-mingw-ucrt lib/wx/rbn/ribbon_page.rb
wxruby3-0.9.3-x64-mingw-ucrt lib/wx/rbn/ribbon_page.rb
wxruby3-0.9.2-x64-mingw-ucrt lib/wx/rbn/ribbon_page.rb
wxruby3-0.9.1-x64-mingw-ucrt lib/wx/rbn/ribbon_page.rb
wxruby3-0.9.0-x64-mingw-ucrt lib/wx/rbn/ribbon_page.rb