summaryrefslogtreecommitdiff
path: root/walls.ui
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-03-09 20:31:26 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-03-09 20:31:26 +0100
commitb6b63a3c51eab072483ac0c7ad07f107bb790788 (patch)
tree7f03f6b2fea9b28a51e7534b70b5969eba275110 /walls.ui
parentc32c6f5ad024cf4ca396b867d82693501e341659 (diff)
Implemented zooming with scrollwheel.
This works by holding control down while scrolling up or down. Horizontal scrolling will now also work by holding shift down.
Diffstat (limited to 'walls.ui')
-rw-r--r--walls.ui2
1 files changed, 2 insertions, 0 deletions
diff --git a/walls.ui b/walls.ui
index cb6f3bd..a355977 100644
--- a/walls.ui
+++ b/walls.ui
@@ -271,9 +271,11 @@
<child>
<object class="GtkLayout" id="layout">
<property name="visible">True</property>
+ <property name="events">GDK_POINTER_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_STRUCTURE_MASK | GDK_SCROLL_MASK</property>
<signal name="button_press_event" handler="on_layout_button_press_event"/>
<signal name="motion_notify_event" handler="on_layout_motion_notify_event"/>
<signal name="button_release_event" handler="on_layout_button_release_event"/>
+ <signal name="scroll_event" handler="on_layout_scroll_event"/>
<child>
<object class="GtkImage" id="image">
<property name="visible">True</property>