class Gtk::TabToolbar

Public Class Methods

new(imaginally, *args) click to toggle source
Calls superclass method
# File core/plugin/gtk/tab_toolbar.rb, line 7
def initialize(imaginally, *args)
  type_strict imaginally => Plugin::GUI::TabToolbar
  @imaginally = imaginally
  super(*args)
end

Public Instance Methods

set_button() click to toggle source
# File core/plugin/gtk/tab_toolbar.rb, line 13
def set_button
  self.children.each(&method(:remove))
  current_world, = Plugin.filtering(:world_current, nil)
  Plugin::Gtk::ToolbarGenerator.generate(
    self,
    Plugin::GUI::Event.new(
      event: :tab_toolbar,
      widget: @imaginally.parent,
      messages: [],
      world: current_world
    ),
    :tab)
end