class MyRendererList::ListButton
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/FormHolder/Form/InputHolder/List.rb, line 10 def initialize super() set_label("") set_image(Gtk::Image.new(Gtk::Stock::INDEX,Gtk::IconSize::MENU)) set_relief(Gtk::ReliefStyle::NONE) end
Public Instance Methods
update(notifier)
click to toggle source
# File lib/FormHolder/Form/InputHolder/List.rb, line 17 def update(notifier) set_image(Gtk::Image.new( case notifier.parentM.runmode when "info" then Gtk::Stock::INFO when "wysiwygf" then Gtk::Stock::PROPERTIES else if notifier.text=="-1" or notifier.text=="" then Gtk::Stock::ADD else Gtk::Stock::EDIT end end ,Gtk::IconSize::MENU)) end