X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/0e6076a1a298736d20a92607e5617c47a3a4490b..0eb26799f0090b0a294cf0a61d17ba94b8d19132:/src/preferences.c diff --git a/src/preferences.c b/src/preferences.c index 386f6673..5d413424 100644 --- a/src/preferences.c +++ b/src/preferences.c @@ -1,3 +1,23 @@ +/* + * viking -- GPS Data and Topo Analyzer, Explorer, and Manager + * + * Copyright (C) 2003-2007, Evan Battaglia + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ #include #include #include @@ -212,7 +232,7 @@ void a_preferences_run_setparam ( VikLayerParamData data, VikLayerParam *params preferences_run_setparam (NULL, 0, data, params); } -static VikLayerParamData preferences_run_getparam ( gpointer notused, guint16 i ) +static VikLayerParamData preferences_run_getparam ( gpointer notused, guint16 i, gboolean notused2 ) { VikLayerTypedParamData *val = (VikLayerTypedParamData *) g_hash_table_lookup ( values, ((VikLayerParam *)g_ptr_array_index(params,i))->name ); g_assert ( val != NULL ); @@ -266,7 +286,7 @@ void a_preferences_show_window(GtkWindow *parent) { preferences_load_from_file(); if ( a_uibuilder_properties_factory ( _("Preferences"), parent, contiguous_params, params_count, (gchar **) groups_names->pdata, groups_names->len, // groups, groups_count, // groups? what groups?! - (gboolean (*) (gpointer,guint16,VikLayerParamData,gpointer)) preferences_run_setparam, + (gboolean (*) (gpointer,guint16,VikLayerParamData,gpointer,gboolean)) preferences_run_setparam, NULL /* not used */, contiguous_params, preferences_run_getparam, NULL /* not used */ ) ) { a_preferences_save_to_file();