gntstyle.h
Go to the documentation of this file.
/*
* GNT - The GLib Ncurses Toolkit
*
* GNT is the legal property of its developers, whose names are too numerous
* to list here. Please refer to the COPYRIGHT file distributed with this
* source distribution.
*
* This library 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., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
*/
#include "gnt.h"
#include "gntwm.h"
typedef enum
{
GNT_STYLE_SHADOW = 0,
GNT_STYLE_COLOR = 1,
GNT_STYLE_MOUSE = 2,
GNT_STYLE_WM = 3,
GNT_STYLE_REMPOS = 4,
GNT_STYLES
} GntStyle;
void gnt_style_read_configure_file(const char *filename);
const char *gnt_style_get(GntStyle style);
char *gnt_style_get_from_name(const char *group, const char *key);
char **gnt_style_get_string_list(const char *group, const char *key, gsize *length);
int gnt_style_get_color(char *group, char *key);
gboolean gnt_style_parse_bool(const char *value);
gboolean gnt_style_get_bool(GntStyle style, gboolean def);
void gnt_styles_get_keyremaps(GType type, GHashTable *hash);
void gnt_style_read_actions(GType type, GntBindableClass *klass);
gboolean gnt_style_read_menu_accels(const char *name, GHashTable *table);
void gnt_style_read_workspaces(GntWM *wm);
void gnt_init_styles(void);
void gnt_uninit_styles(void);
gnt_style_get_string_list
char ** gnt_style_get_string_list(const char *group, const char *key, gsize *length)
Get the value of a preference in ~/.gntrc.
gnt.h
gnt_style_get_bool
gboolean gnt_style_get_bool(GntStyle style, gboolean def)
Get the boolean value for a user-setting.
gnt_style_get_color
int gnt_style_get_color(char *group, char *key)
Get the value of a color pair in ~/.gntrc.
gnt_style_read_configure_file
void gnt_style_read_configure_file(const char *filename)
Read configuration from a file.
gnt_style_parse_bool
gboolean gnt_style_parse_bool(const char *value)
Parse a boolean preference.
gnt_style_read_menu_accels
gboolean gnt_style_read_menu_accels(const char *name, GHashTable *table)
Read menu-accels from ~/.gntrc.
gntwm.h
gnt_uninit_styles
void gnt_uninit_styles(void)
Uninitialize style settings.
_GntBindableClass
Definition: gntbindable.h:52
gnt_style_get_from_name
char * gnt_style_get_from_name(const char *group, const char *key)
Get the value of a preference in ~/.gntrc.
_GntWM
Definition: gntwm.h:79
gnt_init_styles
void gnt_init_styles(void)
Initialize style settings.
gnt_style_get
const char * gnt_style_get(GntStyle style)
Get the user-setting for a style.