Sha256: 773ec4b4dd9e2c8e169e8a273f458e64f3f541acf146fe8a2051d97ac6ec3c35
Contents?: true
Size: 896 Bytes
Versions: 1
Compression:
Stored size: 896 Bytes
Contents
require_relative 'base' require_relative 'login' module ManabuDesktop module Screens class MainMenu < ManabuDesktop::Screens::Base def initialize() super('main_menu') connect_button = @builder.get_object('connect.button') connect_button.set_label(I18n.t('main_menu.connect')) connect_button.signal_connect('clicked') { ManabuDesktop::Screens::Login.new } settings_button = @builder.get_object('settings.button') settings_button.set_label(I18n.t('main_menu.settings')) settings_button.signal_connect('clicked') { puts 'Settings coming soon' } exit_button = @builder.get_object('exit.button') exit_button.set_label(I18n.t('main_menu.exit')) exit_button.signal_connect('clicked') do |_widget| Gtk.main_quit() @window.destroy() end _show() end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
manabu-desktop-0.0.2 | lib/screens/main_menu.rb |