From: Kaj-Michael Lang Date: Fri, 21 Mar 2008 20:12:03 +0000 (+0200) Subject: Fix hardware key customization dialog menu X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfeadd736664d1b5395b626bcfbde759c263bbf1;p=mapper Fix hardware key customization dialog menu --- diff --git a/src/cb.c b/src/cb.c index 549ef0d..64b5ffd 100644 --- a/src/cb.c +++ b/src/cb.c @@ -536,6 +536,13 @@ settings_dialog_osm(); return TRUE; } +gboolean +menu_cb_settings_keys(GtkAction * action) +{ +settings_dialog_hardkeys(); +return TRUE; +} + gboolean menu_cb_import_osm(GtkAction * action) { diff --git a/src/cb.h b/src/cb.h index 0c1aeba..01cc1d6 100644 --- a/src/cb.h +++ b/src/cb.h @@ -72,6 +72,7 @@ gboolean menu_cb_settings(GtkAction * action); gboolean menu_cb_settings_gps(GtkAction * action); gboolean menu_cb_settings_osm(GtkAction * action); gboolean menu_cb_settings_colors(GtkAction * action); +gboolean menu_cb_settings_keys(GtkAction * action); gboolean menu_cb_import_osm(GtkAction * action); gboolean menu_cb_help(GtkAction * action); gboolean menu_cb_about(GtkAction * action); diff --git a/src/ui-common.c b/src/ui-common.c index eded8ba..dc818c5 100644 --- a/src/ui-common.c +++ b/src/ui-common.c @@ -90,11 +90,12 @@ static const gchar *mapper_ui = " " " " " " +" " +" " #ifdef WITH_DEVICE_770 +" " " " #endif -" " -" " " " " " " " @@ -225,6 +226,7 @@ static GtkActionEntry ui_entries[] = { {"file_settings_colors", NULL, N_("_Colors..."), NULL, NULL, G_CALLBACK(menu_cb_settings_colors) }, {"file_settings_gps", NULL, N_("_Gps..."), NULL, NULL, G_CALLBACK(menu_cb_settings_gps) }, {"file_settings_osm", NULL, N_("_Map info..."), NULL, NULL, G_CALLBACK(menu_cb_settings_osm) }, + {"file_settings_keys", NULL, N_("_Keys..."), NULL, NULL, G_CALLBACK(menu_cb_settings_keys) }, {"file_import_osm", NULL, N_("_Import OSM data..."), NULL, NULL, G_CALLBACK(menu_cb_import_osm) }, {"file_quit", GTK_STOCK_QUIT, N_("_Quit"), "Q", NULL, G_CALLBACK(mapper_cb_quit) },