Sha256: 0096669150c2a9c85a51a8963da049c143f69bf063c0cf6f4dd55b84f3b5d0e3

Contents?: true

Size: 663 Bytes

Versions: 1

Compression:

Stored size: 663 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.signal_connect('clicked') { ManabuDesktop::Screens::Login.new }

        settings_button = @builder.get_object('settings.button')
        settings_button.signal_connect('clicked') { puts 'Settings coming soon' }

        exit_button = @builder.get_object('exit.button')
        exit_button.signal_connect('clicked') { |_widget| Gtk.main_quit }
        _show()
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
manabu-desktop-0.0.1 lib/screens/main_menu.rb