Sha256: b817aff1e7d36c1b40e130cf770342466e108fcfac3cbae81a03b7d5f69c1024

Contents?: true

Size: 712 Bytes

Versions: 6

Compression:

Stored size: 712 Bytes

Contents

Shoes.app do 
  stack do
    para "Check if we can access shoes.yaml settings"
    button "Check" do
      st = Shoes.settings
      @eb.append "Have settings for #{st}\n"
      @eb.append "Name: #{st.app_name}\n"
      if RUBY_PLATFORM =~ /(linux)|(bsd)/
        @eb.append "Dbus: #{st.dbus}\n"
        @eb.append "RDomain: #{st.rdomain}\n"
      end
      @eb.append "Theme: #{st.theme}\n"
      @eb.append "MDI: #{st.mdi}\n"
      @eb.append "Menus: #{st.use_menus}\n"
      st.monitor_count.times  do |mon|
        @eb.append "Monitor #{mon} => #{st.monitor_geometry(mon)}\n"
      end
      @eb.append "Default monitor: #{st.monitor_default}\n"
    end 
    @eb = edit_box width: 400, height: 300
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
scarpe-0.4.0 examples/legacy/not_checked/shoes3-tests/gapp/settings1.rb
scarpe-0.3.0 examples/legacy/not_checked/shoes3-tests/gapp/settings1.rb
scarpe-0.2.2 examples/legacy/not_checked/shoes3-tests/gapp/settings1.rb
lacci-0.2.1 examples/legacy/not_checked/shoes3-tests/gapp/settings1.rb
scarpe-0.2.1 examples/legacy/not_checked/shoes3-tests/gapp/settings1.rb
scarpe-0.2.0 examples/legacy/not_checked/shoes3-tests/gapp/settings1.rb