]> spindle.queued.net Git - midori/commitdiff
Fix Mouse Gestures to handle events properly again
authorChristian Dywan <christian@twotoasts.de>
Tue, 17 Nov 2009 22:35:53 +0000 (23:35 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 17 Nov 2009 22:39:52 +0000 (23:39 +0100)
extensions/mouse-gestures.c

index b6bddbc550528d07c0e79d9c5994efbe6ba7d1d5..eedaa5721d9400caec55e56e53b6feb4cfbed8e5 100644 (file)
@@ -75,7 +75,6 @@ mouse_gestures_button_press_event_cb (GtkWidget*     web_view,
             gesture->start.y = event->button.y;
             gesture->last = event->button.button;
         }
-
         return TRUE;
     }
 
@@ -106,9 +105,11 @@ mouse_gestures_motion_notify_event_cb (GtkWidget*     web_view,
             gesture->end.x = x;
             gesture->end.y = y;
         }
+
+        return TRUE;
     }
 
-    return TRUE;
+    return FALSE;
 }
 
 static gboolean
@@ -175,11 +176,13 @@ mouse_gestures_button_release_event_cb (GtkWidget*     web_view,
                     midori_browser_activate_action (browser, "Back");
             }
         }
-    }
 
-    mouse_gesture_clear (gesture);
+        mouse_gesture_clear (gesture);
 
-    return TRUE;
+        return TRUE;
+    }
+
+    return FALSE;
 }
 
 static void