projects
/
snett.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d18026f
)
Popup the menu in the button_press_event handler.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 12 Mar 2006 18:55:00 +0000
(18:55 +0000)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 12 Mar 2006 19:55:00 +0000
(19:55 +0000)
bin/snett
patch
|
blob
|
history
diff --git
a/bin/snett
b/bin/snett
index 1dce7081742f33f988600821db29f5d5d4954329..96d6c0111c181582589fdea002557ea5a6601f83 100755
(executable)
--- a/
bin/snett
+++ b/
bin/snett
@@
-99,15
+99,12
@@
module Snett
event_box.events = Gdk::Event::BUTTON_PRESS_MASK |
Gdk::Event::BUTTON_RELEASE_MASK
- event_box.signal_connect("button_release_event") do |_, event|
- menu.popup(event) if event.button == 3
- false
- end
-
event_box.signal_connect("button_press_event") do |_, event|
if event.button == 1
x, y = Gdk::Display.default.pointer[1, 2]
self.begin_move_drag(event.button, x, y, event.time)
+ elsif event.button == 3
+ menu.popup(event)
end
false