[xiphos-source] [crosswire/xiphos] 9b1e66: Fix expander triangle (#1299)
LAfricain
noreply at github.com
Sun Mar 22 16:10:04 EDT 2026
Branch: refs/heads/master
Home: https://github.com/crosswire/xiphos
Commit: 9b1e66a547d03b15716a4f547cddb835b4d93df2
https://github.com/crosswire/xiphos/commit/9b1e66a547d03b15716a4f547cddb835b4d93df2
Author: L'Africain <fr.cyrille at tiberiade.be>
Date: 2026-03-22 (Sun, 22 Mar 2026)
Changed paths:
M src/gtk/sidebar.c
Log Message:
-----------
Fix expander triangle (#1299)
* mod_mgr: add Left/Right arrow keys to expand/collapse module groups
* fix(sidebar): prevent expander triangle click from being cancelled
The button_release handler was unconditionally toggling expand/collapse
on every click, immediately reversing what GTK had already done on
button_press when clicking the expander triangle.
Fix by detecting whether the click occurred on the expander zone using
the click coordinates and GTK's expander-size style property. Clicks
on the expander triangle are now left to GTK, while clicks on the text
label still trigger expand/collapse as before.
Fixes #912
---------
Co-authored-by: lafricain79 <lafricain79 at gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/crosswire/xiphos/settings/notifications
More information about the xiphos-source
mailing list