1 /* 2 * Celestia GTK+ Front-End 3 * Copyright (C) 2005 Pat Suwalski <pat@suwalski.net> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * $Id: settings-gconf.h,v 1.1 2005-12-06 03:19:36 suwalski Exp $ 11 */ 12 13 #ifndef GTK_SETTINGS_GCONF_H 14 #define GTK_SETTINGS_GCONF_H 15 16 #include <gconf/gconf-client.h> 17 18 #include "common.h" 19 20 21 /* Initialize GConf */ 22 void initSettingsGConf(AppData* app); 23 void initSettingsGConfNotifiers(AppData* app); 24 25 /* Apply Settings */ 26 void applySettingsGConfPre(AppData* app, GConfClient* client); 27 void applySettingsGConfMain(AppData* app, GConfClient* client); 28 29 /* Save Settings to GConf */ 30 void saveSettingsGConf(AppData* app); 31 32 /* Utility Functions */ 33 void gcSetRenderFlag(int flag, gboolean state, GConfClient* client); 34 void gcSetOrbitMask(int flag, gboolean state, GConfClient* client); 35 void gcSetLabelMode(int flag, gboolean state, GConfClient* client); 36 37 38 enum { 39 Render = 0, 40 Orbit = 1, 41 Label = 2, 42 }; 43 44 #endif /* GTK_SETTINGS_GCONF_H */ 45