def set_callback(meth, args = [])
args.unshift(meth)
- signal_connect("button_release_event") do
+ signal_connect("activate") do
Snett::Snett.instance.xmms.send(*args)
false
end
item = Gtk::ImageMenuItem.new(text)
item.image = Gtk::Image.new(stock, Gtk::IconSize::MENU)
- item.signal_connect("button_release_event") do
+ item.signal_connect("activate") do
PlaylistDialog.new(sym).show_all
false
end
append(Gtk::SeparatorMenuItem.new)
item = Gtk::ImageMenuItem.new(Gtk::Stock::ABOUT)
- item.signal_connect("button_release_event") do
+ item.signal_connect("activate") do
props = {
"name" => PKG_NAME,
"version" => VERSION,
append(item)
item = Gtk::ImageMenuItem.new(Gtk::Stock::QUIT)
- item.signal_connect("button_release_event") do
+ item.signal_connect("activate") do
Snett.instance.signal_emit("destroy")
false
end