[recipes] Drop most mouse navigation from cooking view
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Drop most mouse navigation from cooking view
- Date: Fri, 24 Feb 2017 05:23:14 +0000 (UTC)
commit 07440717c4923d64afa30acc7b080c5eda09125d
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 23 17:56:46 2017 -0500
Drop most mouse navigation from cooking view
There are a quite a few clickable controls on the cooking
view, and it is very annoying to have misclicks change the
page. Therefore, drop most of the mouse navigation, except
for forward/back buttons, which are not conflicting with
anything else.
src/gr-cooking-page.c | 27 ---------------------------
1 files changed, 0 insertions(+), 27 deletions(-)
---
diff --git a/src/gr-cooking-page.c b/src/gr-cooking-page.c
index 421a281..cb2f035 100644
--- a/src/gr-cooking-page.c
+++ b/src/gr-cooking-page.c
@@ -53,7 +53,6 @@ struct _GrCookingPage
guint inhibit_cookie;
guint keyval_seen;
- guint button_seen;
guint hide_timeout;
};
@@ -260,10 +259,6 @@ doubletap_timeout (gpointer data)
page->keyval_seen = 0;
forward (page);
}
- else if (page->button_seen) {
- page->button_seen = 0;
- forward (page);
- }
return G_SOURCE_REMOVE;
}
@@ -409,28 +404,6 @@ gr_cooking_page_handle_event (GrCookingPage *page,
return GDK_EVENT_STOP;
}
- else if (e->button == GDK_BUTTON_SECONDARY) {
- stop_cooking (page);
-
- return GDK_EVENT_STOP;
- }
- else if (e->button == page->button_seen) {
- page->button_seen = 0;
- prev_step (page);
-
- return GDK_EVENT_STOP;
- }
- else {
- GtkSettings *settings;
- int time;
-
- settings = gtk_widget_get_settings (GTK_WIDGET (page));
- g_object_get (settings, "gtk-double-click-time", &time, NULL);
- page->button_seen = e->button;
- g_timeout_add (time, doubletap_timeout, page);
-
- return GDK_EVENT_STOP;
- }
}
return GDK_EVENT_PROPAGATE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]