Fix loading a world file
[viking.git] / src / preferences.h
blob2796a8d7be1f6bba816b2f3b39c24a63f33bb73a
1 #ifndef __VIKING_PREFERENCES_H
2 #define __VIKING_PREFERENCES_H
4 #include "uibuilder.h"
6 // TODO IMPORTANT!!!! add REGISTER_GROUP !!! OR SOMETHING!!! CURRENTLY GROUPLESS!!!
8 void a_preferences_init();
9 void a_preferences_uninit();
11 /* pref should be persistent thruout the life of the preference. */
14 /* must call FIRST */
15 void a_preferences_register_group ( const gchar *key, const gchar *name );
17 /* nothing in pref is copied neither but pref itself is copied. (TODO: COPY EVERYTHING IN PREF WE NEED, IF ANYTHING),
18 so pref key is not copied. default param data IS copied. */
19 /* group field (integer) will be overwritten */
20 void a_preferences_register( VikLayerParam *pref, VikLayerParamData defaultval, const gchar *group_key );
23 void a_preferences_show_window(GtkWindow *parent);
25 VikLayerParamData *a_preferences_get(const gchar *key);
29 #endif