diff options
author | Sean Baggaley <[email protected]> | 2025-09-15 13:52:34 +0100 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2025-09-15 14:01:13 +0000 |
commit | 5db7d1d3d2cfe5c1869a88708c07b8a981f98786 (patch) | |
tree | e8e8cce218fbc330e2d174639632d2f2e9e46933 | |
parent | 84442a6bc1bf448c8780305db9ad5d9641af854f (diff) | |
download | eom-master.tar.bz2 eom-master.tar.xz |
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.
Backported from
https://gitlab.gnome.org/GNOME/eog/-/commit/b23508382f0131d9961e437fe8c8453adeb84faa
-rw-r--r-- | src/eom-window.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/eom-window.c b/src/eom-window.c index 3d572f9..e24738b 100644 --- a/src/eom-window.c +++ b/src/eom-window.c @@ -5099,14 +5099,19 @@ eom_window_button_press (GtkWidget *widget, GdkEventButton *event) EomWindow *window = EOM_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: eom_thumb_view_select_single (EOM_THUMB_VIEW (window->priv->thumbview), EOM_THUMB_VIEW_SELECT_LEFT); result = TRUE; break; case 7: + case 9: eom_thumb_view_select_single (EOM_THUMB_VIEW (window->priv->thumbview), EOM_THUMB_VIEW_SELECT_RIGHT); result = TRUE; |