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:
Linus Torvalds 2012-06-27 18:09:26 -07:00
parent a2c2c7e1a8
commit 162b36f4a5
3 changed files with 4 additions and 1 deletions

View file

@ -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;