00001 00005 /* 00006 * GNT - The GLib Ncurses Toolkit 00007 * 00008 * GNT is the legal property of its developers, whose names are too numerous 00009 * to list here. Please refer to the COPYRIGHT file distributed with this 00010 * source distribution. 00011 * 00012 * This library is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation; either version 2 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with this program; if not, write to the Free Software 00024 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA 00025 */ 00026 00027 #include "gnt.h" 00028 #include "gntwm.h" 00029 00030 typedef enum 00031 { 00032 GNT_STYLE_SHADOW = 0, 00033 GNT_STYLE_COLOR = 1, 00034 GNT_STYLE_MOUSE = 2, 00035 GNT_STYLE_WM = 3, 00036 GNT_STYLE_REMPOS = 4, 00037 GNT_STYLES 00038 } GntStyle; 00039 00044 void gnt_style_read_configure_file(const char *filename); 00045 00046 const char *gnt_style_get(GntStyle style); 00047 00057 char *gnt_style_get_from_name(const char *group, const char *key); 00058 00066 gboolean gnt_style_parse_bool(const char *value); 00067 00075 gboolean gnt_style_get_bool(GntStyle style, gboolean def); 00076 00077 /* This should be called only once for the each type */ 00083 void gnt_styles_get_keyremaps(GType type, GHashTable *hash); 00084 00090 void gnt_style_read_actions(GType type, GntBindableClass *klass); 00091 00092 void gnt_style_read_workspaces(GntWM *wm); 00093 00097 void gnt_init_styles(void); 00098 00102 void gnt_uninit_styles(void); 00103