Fix Mouse Gestures to handle events properly again
This commit is contained in:
parent
9eefb25bb6
commit
c8d02719cc
1 changed files with 8 additions and 5 deletions
|
@ -75,7 +75,6 @@ mouse_gestures_button_press_event_cb (GtkWidget* web_view,
|
||||||
gesture->start.y = event->button.y;
|
gesture->start.y = event->button.y;
|
||||||
gesture->last = event->button.button;
|
gesture->last = event->button.button;
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,11 +105,13 @@ mouse_gestures_motion_notify_event_cb (GtkWidget* web_view,
|
||||||
gesture->end.x = x;
|
gesture->end.x = x;
|
||||||
gesture->end.y = y;
|
gesture->end.y = y;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
mouse_gestures_button_release_event_cb (GtkWidget* web_view,
|
mouse_gestures_button_release_event_cb (GtkWidget* web_view,
|
||||||
GdkEvent* event,
|
GdkEvent* event,
|
||||||
|
@ -175,13 +176,15 @@ mouse_gestures_button_release_event_cb (GtkWidget* web_view,
|
||||||
midori_browser_activate_action (browser, "Back");
|
midori_browser_activate_action (browser, "Back");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
mouse_gesture_clear (gesture);
|
mouse_gesture_clear (gesture);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
mouse_gestures_add_tab_cb (MidoriBrowser* browser,
|
mouse_gestures_add_tab_cb (MidoriBrowser* browser,
|
||||||
MidoriView* view,
|
MidoriView* view,
|
||||||
|
|
Loading…
Reference in a new issue