[eog] Add additional key codes for image switching using mouse buttons
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Add additional key codes for image switching using mouse buttons
- Date: Sat, 13 Oct 2012 12:14:32 +0000 (UTC)
commit b23508382f0131d9961e437fe8c8453adeb84faa
Author: Felix Riemann <friemann gnome org>
Date: Sat Oct 13 14:12:38 2012 +0200
Add additional key codes for image switching using mouse buttons
This should re-establish that function for newer X setups.
As we don't know whether the old keycodes could still occur,
we simply keep for compatibility.
https://bugzilla.gnome.org/show_bug.cgi?id=684179
src/eog-window.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index e24ff18..f5c37df 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -5062,14 +5062,19 @@ eog_window_button_press (GtkWidget *widget, GdkEventButton *event)
EogWindow *window = EOG_WINDOW (widget);
gint result = FALSE;
+ /* We currently can't tell whether the old button codes (6, 7) are
+ * still in use. So we keep them in addition to the new ones (8, 9)
+ */
if (event->type == GDK_BUTTON_PRESS) {
switch (event->button) {
case 6:
+ case 8:
eog_thumb_view_select_single (EOG_THUMB_VIEW (window->priv->thumbview),
EOG_THUMB_VIEW_SELECT_LEFT);
result = TRUE;
break;
case 7:
+ case 9:
eog_thumb_view_select_single (EOG_THUMB_VIEW (window->priv->thumbview),
EOG_THUMB_VIEW_SELECT_RIGHT);
result = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]