lib/gtk3app/config.rb in gtk3app-4.0.210128 vs lib/gtk3app/config.rb in gtk3app-5.0.210201

- old
+ new

@@ -14,11 +14,11 @@ # * Strings and numbers are mixed case. # * Arrays are all upper case (may except for arrays of length 1, see Such). # * Hashes are all lower case. # * Lower case bang! keys have special meaning in Such. # * Note that method keys may have mixed case as the method itself. - CONFIG = { + @@CONFIG = { # Application SHOULD modify LOGO to use it's own logo image. Logo: "#{UserSpace::XDG['data']}/gtk3app/logo.png", # Scale logo to this size. LogoSize: 25, @@ -101,6 +101,8 @@ add_menu_item: [ :minime!, :fs!, :help!, :about!, :quit! ], }, # s0 tells AppMenu not to connect to any signal, otherwise it assumes "clicked". app_menu!: [:APP_MENU, :app_menu, s0], } + CONFIG = lambda{|k| @@CONFIG[k]} + def CONFIG.to_h = @@CONFIG end