[recipes] Support mouse forward/back buttons
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Support mouse forward/back buttons
- Date: Fri, 24 Feb 2017 05:23:04 +0000 (UTC)
commit 549d1115706592d858d39c1eb9f1a302a8a77081
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 23 16:32:40 2017 -0500
Support mouse forward/back buttons
Just since we can.
src/gr-cooking-page.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-cooking-page.c b/src/gr-cooking-page.c
index e6c36f3..421a281 100644
--- a/src/gr-cooking-page.c
+++ b/src/gr-cooking-page.c
@@ -399,7 +399,17 @@ gr_cooking_page_handle_event (GrCookingPage *page,
else if (event->type == GDK_BUTTON_PRESS) {
GdkEventButton *e = (GdkEventButton *)event;
- if (e->button == GDK_BUTTON_SECONDARY) {
+ if (e->button == 8) {
+ prev_step (page);
+
+ return GDK_EVENT_STOP;
+ }
+ else if (e->button == 9) {
+ next_step (page);
+
+ return GDK_EVENT_STOP;
+ }
+ else if (e->button == GDK_BUTTON_SECONDARY) {
stop_cooking (page);
return GDK_EVENT_STOP;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]