[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-mnstbs-popup

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 10月 24日 (水) 06:15:09 JST


-------------------------
REMOTE_ADDR = 184.145.49.94
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-popup
-------------------------
@@ -141,7 +141,13 @@
 We had all the parameters except the button and activate_time set to nil. If the pop-up menu was activated by something other than a mouse button click, you should supply 0 to the button parameter.
 
 :Note:
-    If the action was invoked by a ((*popup-menu*)) signal, the event time would not be available. You would need to provide the time value yourself.
+    If the action was invoked by a((*popup-menu*))signal emitted by the((*<Shift+F10>*))accelerator keys, the event time would not be available. You would need to provide the time value yourself.
+    
+     # Accelerator keys <Shift+F10> generate 'popup-menu' signal
+     # for window, but neither for progress bar nor for event box!
+     window.signal_connect("popup_menu") do |w|
+       menu.popup(nil, nil, 0, Gdk::Event::CURRENT_TIME)
+     end
 
 == Keyboard Accelerators
 




ruby-gnome2-cvs メーリングリストの案内
Back to archive index