class MyRendererComboWithNew::ComboButton
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/FormHolder/Form/InputHolder/ComboWithNew.rb, line 12 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/ComboWithNew.rb, line 19 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 (notifier.text=="-1" || notifier.text=="" ? Gtk::Stock::ADD : Gtk::Stock::EDIT ) end ,Gtk::IconSize::MENU)) end