latlon2unit(_home.lat, _home.lon, unitx, unity);
map_center_unit(unitx, unity);
+ map_set_autozoom(FALSE);
vprintf("%s(): return TRUE\n", __PRETTY_FUNCTION__);
return TRUE;
map_center_unit(_next_way->point->unitx,
_next_way->point->unity);
} else {
- MACRO_BANNER_SHOW_INFO(_window,
- _("There is no next waypoint."));
+ MACRO_BANNER_SHOW_INFO(_window, _("There is no next waypoint."));
}
vprintf("%s(): return TRUE\n", __PRETTY_FUNCTION__);
for (i = 0; i < CUSTOM_KEY_ENUM_COUNT; i++) {
gint j;
for (j = i + 1; j < CUSTOM_KEY_ENUM_COUNT; j++) {
- if (gtk_combo_box_get_active
- (GTK_COMBO_BOX(bdi.cmb[i]))
- ==
- gtk_combo_box_get_active(GTK_COMBO_BOX
- (bdi.cmb[j]))) {
+ if (gtk_combo_box_get_active(GTK_COMBO_BOX(bdi.cmb[i]))
+ == gtk_combo_box_get_active(GTK_COMBO_BOX(bdi.cmb[j]))) {
GtkWidget *confirm;
gchar *buffer =
g_strdup_printf("%s:\n %s\n%s",
- _
- ("The following action is mapped to multiple keys"),
+ _("The following action is mapped to multiple keys"),
CUSTOM_ACTION_TEXT
[gtk_combo_box_get_active
(GTK_COMBO_BOX
gtk_widget_show_all(dialog);
- while (GTK_RESPONSE_ACCEPT == gtk_dialog_run(GTK_DIALOG(dialog))) {
- GdkColor *color;
+ if (GTK_RESPONSE_ACCEPT == gtk_dialog_run(GTK_DIALOG(dialog))) {
+ GdkColor *color=NULL;
- gtk_color_button_get_color(GTK_COLOR_BUTTON
- (cdi.col[COLORABLE_MARK]),color);
+ gtk_color_button_get_color(GTK_COLOR_BUTTON(cdi.col[COLORABLE_MARK]),color);
_color[COLORABLE_MARK] = *color;
- gtk_color_button_get_color(GTK_COLOR_BUTTON
- (cdi.col[COLORABLE_MARK_VELOCITY]) ,color);
+ gtk_color_button_get_color(GTK_COLOR_BUTTON(cdi.col[COLORABLE_MARK_VELOCITY]) ,color);
_color[COLORABLE_MARK_VELOCITY] = *color;
- gtk_color_button_get_color(GTK_COLOR_BUTTON
- (cdi.col[COLORABLE_MARK_OLD]),color);
+ gtk_color_button_get_color(GTK_COLOR_BUTTON(cdi.col[COLORABLE_MARK_OLD]),color);
_color[COLORABLE_MARK_OLD] = *color;
- gtk_color_button_get_color(GTK_COLOR_BUTTON
- (cdi.col[COLORABLE_TRACK]),color);
+ gtk_color_button_get_color(GTK_COLOR_BUTTON(cdi.col[COLORABLE_TRACK]),color);
_color[COLORABLE_TRACK] = *color;
- gtk_color_button_get_color(GTK_COLOR_BUTTON
- (cdi.col[COLORABLE_TRACK_MARK]),color);
+ gtk_color_button_get_color(GTK_COLOR_BUTTON(cdi.col[COLORABLE_TRACK_MARK]),color);
_color[COLORABLE_TRACK_MARK] = *color;
- gtk_color_button_get_color(GTK_COLOR_BUTTON
- (cdi.col[COLORABLE_TRACK_BREAK]),color);
+ gtk_color_button_get_color(GTK_COLOR_BUTTON(cdi.col[COLORABLE_TRACK_BREAK]),color);
_color[COLORABLE_TRACK_BREAK] = *color;
- gtk_color_button_get_color(GTK_COLOR_BUTTON
- (cdi.col[COLORABLE_ROUTE]),color);
+ gtk_color_button_get_color(GTK_COLOR_BUTTON(cdi.col[COLORABLE_ROUTE]),color);
_color[COLORABLE_ROUTE] = *color;
- gtk_color_button_get_color(GTK_COLOR_BUTTON
- (cdi.col[COLORABLE_ROUTE_WAY]),color);
+ gtk_color_button_get_color(GTK_COLOR_BUTTON(cdi.col[COLORABLE_ROUTE_WAY]),color);
_color[COLORABLE_ROUTE_WAY] = *color;
- gtk_color_button_get_color(GTK_COLOR_BUTTON
- (cdi.col[COLORABLE_ROUTE_BREAK]),color);
+ gtk_color_button_get_color(GTK_COLOR_BUTTON(cdi.col[COLORABLE_ROUTE_BREAK]),color);
_color[COLORABLE_ROUTE_BREAK] = *color;
- gtk_color_button_get_color(GTK_COLOR_BUTTON
- (cdi.col[COLORABLE_POI]),color);
+ gtk_color_button_get_color(GTK_COLOR_BUTTON(cdi.col[COLORABLE_POI]),color);
_color[COLORABLE_POI] = *color;
update_gcs();
- break;
}
gtk_widget_destroy(dialog);
gtk_widget_hide(lbl_voice_pitch);
gtk_widget_hide(num_voice_pitch);
- while (GTK_RESPONSE_ACCEPT == gtk_dialog_run(GTK_DIALOG(dialog))) {
+ if (GTK_RESPONSE_ACCEPT == gtk_dialog_run(GTK_DIALOG(dialog))) {
/* Set _rcvr_mac if necessary. */
if (!*gtk_entry_get_text(GTK_ENTRY(txt_rcvr_mac))) {
/* User specified no rcvr mac - set _rcvr_mac to NULL. */
update_gcs();
config_save();
- break;
}
#ifndef WITH_HILDON