ruby-****@sourc*****
ruby-****@sourc*****
2012年 10月 28日 (日) 03:11:27 JST
------------------------- REMOTE_ADDR = 74.14.158.59 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-statb ------------------------- @@ -111,14 +111,17 @@ menu.append(fill) menu.append(clear) + # -- 'activate' is Gtk::MenuItem's signal pulse.signal_connect('activate') { pulse_activated(sbar, progb) } fill.signal_connect('activate') { fill_activated(sbar, progb) } clear.signal_connect('activate') { clear_activated(sbar, progb) } + # -- 'enter-notify-event'is Gtk::Widget's signal pulse.signal_connect('enter_notify_event') { |w, e| statusbar_hint(w, e, sbar, menu_hint_msgs) } fill.signal_connect('enter_notify_event') { |w, e| statusbar_hint(w, e, sbar, menu_hint_msgs) } clear.signal_connect('enter_notify_event') { |w, e| statusbar_hint(w, e, sbar, menu_hint_msgs) } - + + # -- 'leave-notify-event'is Gtk::Widget's signal pulse.signal_connect('leave_notify_event') { |w, e| statusbar_hint(w, e, sbar, menu_hint_msgs) } fill.signal_connect('leave_notify_event') { |w, e| statusbar_hint(w, e, sbar, menu_hint_msgs) } clear.signal_connect('leave_notify_event') { |w, e| statusbar_hint(w, e, sbar, menu_hint_msgs) }