diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-01-01 08:22:46 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-01 08:24:42 -0800 |
commit | 91ca0d2cf669881f40a71c2ec9f05b7e5caba509 (patch) | |
tree | 6b23a4a9a4f6c3458c73a2dc016a1ef787e5af00 /divelist.h | |
parent | d720e133d84d6d468ffab48698d5105849f7d14c (diff) | |
download | subsurface-91ca0d2cf669881f40a71c2ec9f05b7e5caba509.tar.gz |
First step towards grabbing keys and handling them ourselves
This commit steals the cursor up and down keys away from gtk so regardless
where gtk thinks the focus may be, we can still use the keys to change
between dives.
In the current UI design where all editing happens in separate windows
this works as expected, as we only grab the keys for the main window. If
we manage to re-enable in-place editing then we need to make sure that
this doesn't cause problems (as gtk uses up/down for the ability to change
drop down selections in combo boxes or values in spin buttons. So we must
make sure that we stop stealing these keys once we start editing something
(in which case simply switching to the next/prev dive wouldn't be a good
thing, anyway).
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.h')
-rw-r--r-- | divelist.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/divelist.h b/divelist.h index 0a635c2ed..b309e9a54 100644 --- a/divelist.h +++ b/divelist.h @@ -13,4 +13,6 @@ extern int unsaved_changes(void); extern void remove_autogen_trips(void); extern void remember_tree_state(void); extern void restore_tree_state(void); +extern void select_next_dive(void); +extern void select_prev_dive(void); #endif |