ruby-****@sourc*****
ruby-****@sourc*****
2012年 10月 30日 (火) 23:39:29 JST
------------------------- REMOTE_ADDR = 74.14.158.59 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-mnui ------------------------- @@ -170,9 +170,7 @@ sub_submenu1.name = "sub-sub menu1" mitem2.submenu = mk_submenu(sub_submenu1, "t1-test1", "t2-test2", true) menu.show_all - - mitem1.signal_connect('activate') { |w, e| puts "#{w.class} - Test1" } - + window = Gtk::Window.new("Context Menu w/submenus (1)") # Make window sensitive to Right-mouse-click, to open the pop-up menu.