lib/gtk3app/config.rb in gtk3app-5.3.210919 vs lib/gtk3app/config.rb in gtk3app-5.4.230109

- old
+ new

@@ -9,14 +9,14 @@ --minime \tReal minime --notoggle \tMinime wont toggle decorated and keep above --notdecorated\tDont decorate window HELP - # CONFIG follows the following conventions: + # See Such::Convention. Summary: # * 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. + # * Arrays are upper case. + # * Hashes are lower case. # * Lower case bang! keys have special meaning in Such. # * Note that method keys may have mixed case as the method itself. @@CONFIG = { # Application SHOULD modify LOGO to use it's own logo image. Logo: "#{UserSpace::XDG['data']}/gtk3app/logo.png", @@ -27,11 +27,11 @@ Open: 'xdg-open', # Main window configuration MAIN: a0, # Window.new's parameters main: h0, # window settings - main!: [:MAIN,:main], + main!: [:MAIN,:main,'key-press-event','delete-event'], # Expander stage configuration STAGE: a0, stage: {set_expanded:true}, stage!: [:STAGE, :stage], @@ -54,11 +54,11 @@ about: h0, about!: [:ABOUT, :about, 'activate'], about_dialog: { set_program_name: 'Gtk3App', set_version: VERSION.semantic(0..1), - set_copyright: '(c) 2021 CarlosJHR64', + set_copyright: '(c) 2023 CarlosJHR64', set_comments: 'A Gtk3 Application Stub', set_website: 'https://github.com/carlosjhr64/gtk3app', set_website_label: 'See it at GitHub!', }, # Application SHOULD modify :HelpFile to their own help page. @@ -101,9 +101,11 @@ app_menu: { 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], + # AppMenu key-binding(ie F1=65470) + AppMenu: 65470, } CONFIG = lambda{|k| @@CONFIG[k]} def CONFIG.to_h = @@CONFIG end