Parent

Included Modules

Class/Module Index [+]

Quicksearch

Rabbit::Menu

Public Class Methods

new(actions) click to toggle source
# File lib/rabbit/menu.rb, line 19
def initialize(actions)
  @merge = Gtk::UIManager.new
  @merge.insert_action_group(actions, 0)
  @jump_to_actions = nil
  @jump_to_merge_id = nil
  @theme_actions = nil
  @theme_merge_id = nil
  update_ui
end

Public Instance Methods

attach(window) click to toggle source
# File lib/rabbit/menu.rb, line 29
def attach(window)
  window.add_accel_group(accel_group)
end
detach(window) click to toggle source
# File lib/rabbit/menu.rb, line 33
def detach(window)
  window.remove_accel_group(accel_group)
end
update_menu(canvas) click to toggle source
# File lib/rabbit/menu.rb, line 37
def update_menu(canvas)
  update_jump_to_menu(canvas)
  update_theme_menu(canvas)
  Action.update_move_slide_action_status(canvas)
  Action.update_graffiti_action_status(canvas)
  Action.update_theme_action_status(canvas)
  Action.update_quit_action_status(canvas)
  @merge.ensure_update
  show_tearoff
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.