Sha256: 803d1aa42d3f29203f76f844a681049e4d7426d61c5026928ad1cda73825d119

Contents?: true

Size: 532 Bytes

Versions: 12

Compression:

Stored size: 532 Bytes

Contents

# The main controller for the application.
#
# NOTE: This controller doesn't inherit from ApplicationController, instead, it
# inherits from RuGUI::BaseMainController. Use it only as a starting point.
# Commonly it is used only to register global models and controllers, as well as
# the main view, but this is entirely up to you.
class MainController < RuGUI::BaseMainController
  # Add your stuff here.

  def setup_views
    register_view :main_view
  end

  on :main_window, 'delete-event' do |widget, event|
    quit
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
intelitiva-rugui-1.2.0 rugui_generators/rugui/templates/GTK/main_controller.rb
intelitiva-rugui-1.3.0 rugui_generators/rugui/templates/GTK/main_controller.rb
intelitiva-rugui-1.3.1 rugui_generators/rugui/templates/GTK/main_controller.rb
intelitiva-rugui-1.3.2 rugui_generators/rugui/templates/GTK/main_controller.rb
rugui-1.4.3 lib/rugui/generators/rugui/templates/framework_specific/gtk/app/controllers/main_controller.rb
rugui-1.4.2 lib/rugui/generators/rugui/templates/framework_specific/gtk/app/controllers/main_controller.rb
rugui-1.4.0 lib/rugui/generators/rugui/templates/framework_specific/gtk/app/controllers/main_controller.rb
rugui-1.3.3 rugui_generators/rugui/templates/GTK/main_controller.rb
rugui-1.3.1 rugui_generators/rugui/templates/GTK/main_controller.rb
rugui-1.3.2 rugui_generators/rugui/templates/GTK/main_controller.rb
rugui-1.3.0 rugui_generators/rugui/templates/GTK/main_controller.rb
rugui-1.2.2 rugui_generators/rugui/templates/GTK/main_controller.rb