ruby-****@sourc*****
ruby-****@sourc*****
2012年 10月 25日 (木) 09:09:54 JST
------------------------- REMOTE_ADDR = 184.145.49.94 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-popup ------------------------- @@ -309,13 +309,13 @@ Gtk::AccelMap.add_entry("<AccelMap Demo>/test_a", Gdk::Keyval::GDK_A, 0) Gtk::AccelMap.add_entry("<AccelMap Demo>/test_b", Gdk::Keyval::GDK_B, 0) Gtk::AccelMap.add_entry("<AccelMap Demo>/test ctrl+sh+c", Gdk::Keyval::GDK_C, - Gdk::windowdow::CONTROL_MASK|Gdk::windowdow::SHIFT_MASK) + Gdk::Window::CONTROL_MASK|Gdk::Window::SHIFT_MASK) ag.connect("<AccelMap Demo>/test_a") { p "Hello with (A)" } ag.connect("<AccelMap Demo>/test_b") { p "Hello (B)" } ag.connect("<AccelMap Demo>/test ctrl+sh+c") { p "Hello World, with (Ctrl+Shift+C)" } - window = Gtk::windowdow.new("Custom Acceleratots") + window = Gtk::Window.new("Custom Acceleratots") window.add(Gtk::Label.new("Press keys:\n\tA, B, Ctrl+Shift+C,\n\tor Ctrl+Z")) window.resizable = true window.set_size_request(250, -1)