lib/gtk3app/config.rb in gtk3app-1.5.2 vs lib/gtk3app/config.rb in gtk3app-2.0.0

- old
+ new

@@ -13,31 +13,11 @@ # * 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 = { - # The command line help in standard form. - Help: <<HELP, -This is the gtk3app stub. - -Usage: - - gtk3app [options] appname ... - -Options: - - -h --help Show this help and exit. - -v --version Show the version and exit. - -q --quiet Set $VERBOSE to nil. - -V --verbose Set $VERBOSE to true. - -d --debug Set $DEBUG to true. - - appname The name of the application to be run. - -HELP - # The command to open with default application Open: 'gnome-open', Slots: 13, # The number of minime slots SlotsDBM: "#{XDG['CACHE']}/gtk3app/slots.sdbm", # slot management database @@ -61,24 +41,24 @@ }, mini!: [:MINI,:mini], # Fullscreen app-menu item # Application MAY modify :FS for language - FS: ['Full Screen'], + FS: [label: 'Full Screen'], fs: h0, fs!: [:FS, :fs, 'activate'], # About app-menu item # Application MAY modify :ABOUT for language # Application SHOULD modify :about_dialog - ABOUT: ['About'], + ABOUT: [label: 'About'], about: h0, about!: [:ABOUT, :about, 'activate'], about_dialog: { set_program_name: 'Gtk3App', set_version: VERSION.semantic(0..1), - set_copyright: '(c) 2014 CarlosJHR64', + set_copyright: '(c) 2017 CarlosJHR64', set_comments: 'A Gtk3 Application Stub', set_website: 'https://github.com/carlosjhr64/gtk3app', set_website_label: 'See it at GitHub!', }, # Application SHOULD modify LOGO to use it's own logo image. @@ -87,22 +67,22 @@ HelpFile: 'https://github.com/carlosjhr64/gtk3app', # By convention, I'm using mix case for simple String configurations in here thing. # Help app-menu item # Application MAY modify :HELP for language - HELP: ['Help'], + HELP: [label: 'Help'], help: h0, help!: [:HELP, :help, 'activate'], # Minime's app-menu item. # Application MAY modify :MINIME for language. - MINIME: ['Mini-me'], + MINIME: [label: 'Mini-me'], minime: h0, minime!: [:MINIME, :minime, 'activate'], # Quit app-menu item. # Application MAY modify :QUIT for language. - QUIT: ['Quit'], + QUIT: [label: 'Quit'], quit: h0, quit!: [:QUIT, :quit, 'activate'], # The app menu configuration. # The application MAY ONLY modify app_menu.append_menu_item