mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make it possible to do "Add Dive" from just the main dive menu
No need for right-clicks. It's inconvenient on lots of laptops etc, so allow just using the Dive menu as an alternative. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
a2c2c7e1a8
commit
162b36f4a5
3 changed files with 4 additions and 1 deletions
|
|
@ -687,7 +687,7 @@ static void row_activated_cb(GtkTreeView *tree_view,
|
|||
edit_dive_info(get_dive(index));
|
||||
}
|
||||
|
||||
static void add_dive_cb(GtkWidget *menuitem, GtkTreeModel *model)
|
||||
void add_dive_cb(GtkWidget *menuitem, gpointer data)
|
||||
{
|
||||
struct dive *dive;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue