Class: HelpToolbar

Inherits:
Gtk::Toolbar
  • Object
show all
Defined in:
lib/ManqodHelp/HelpToolbar.rb

Overview

this file is part of manqod manqod is distributed under the CDDL licence the author of manqod is Dobai-Pataky Balint([email protected])

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(help) ⇒ HelpToolbar

Returns a new instance of HelpToolbar.



6
7
8
9
10
# File 'lib/ManqodHelp/HelpToolbar.rb', line 6

def initialize(help)
	@help=help
	super()
	set_toolbar_style(Gtk::Toolbar::Style::BOTH_HORIZ)
end

Instance Attribute Details

#helpObject (readonly)

Returns the value of attribute help.



11
12
13
# File 'lib/ManqodHelp/HelpToolbar.rb', line 11

def help
  @help
end

Instance Method Details

#append(widget = nil) ⇒ Object



13
14
15
# File 'lib/ManqodHelp/HelpToolbar.rb', line 13

def append(widget=nil)
	insert(n_items,widget ? Gtk::ToolItem.new.add(widget) : Gtk::SeparatorToolItem.new.set_draw(true))
end