Move some configuration items to where they belong.

SVN revision: 13821
This commit is contained in:
Kim Woelders 2005-03-20 23:28:59 +00:00
parent abc99bb5ec
commit 5f1adc98dc
4 changed files with 30 additions and 20 deletions

View File

@ -2772,13 +2772,22 @@ IpcItem BackgroundsIpcArray[] = {
};
#define N_IPC_FUNCS (sizeof(BackgroundsIpcArray)/sizeof(IpcItem))
/*
* Configuration items
*/
static const CfgItem BackgroundsCfgItems[] = {
CFG_ITEM_BOOL(Conf.backgrounds, hiquality, 1),
CFG_ITEM_BOOL(Conf.backgrounds, user, 1),
CFG_ITEM_INT(Conf.backgrounds, timeout, 240),
};
#define N_CFG_ITEMS (sizeof(BackgroundsCfgItems)/sizeof(CfgItem))
/*
* Module descriptor
*/
EModule ModBackgrounds = {
"backgrounds", "bg",
BackgroundsSighan,
{N_IPC_FUNCS, BackgroundsIpcArray}
,
{0, NULL}
{N_IPC_FUNCS, BackgroundsIpcArray},
{N_CFG_ITEMS, BackgroundsCfgItems}
};

View File

@ -1618,10 +1618,25 @@ IpcItem GroupsIpcArray[] = {
};
#define N_IPC_FUNCS (sizeof(GroupsIpcArray)/sizeof(IpcItem))
/*
* Configuration items
*/
static const CfgItem GroupsCfgItems[] = {
CFG_ITEM_BOOL(Conf.groups, dflt.iconify, 1),
CFG_ITEM_BOOL(Conf.groups, dflt.kill, 0),
CFG_ITEM_BOOL(Conf.groups, dflt.mirror, 1),
CFG_ITEM_BOOL(Conf.groups, dflt.move, 1),
CFG_ITEM_BOOL(Conf.groups, dflt.raise, 0),
CFG_ITEM_BOOL(Conf.groups, dflt.set_border, 1),
CFG_ITEM_BOOL(Conf.groups, dflt.stick, 1),
CFG_ITEM_BOOL(Conf.groups, dflt.shade, 1),
CFG_ITEM_BOOL(Conf.groups, swapmove, 1),
};
#define N_CFG_ITEMS (sizeof(GroupsCfgItems)/sizeof(CfgItem))
EModule ModGroups = {
"groups", "grp",
GroupsSighan,
{N_IPC_FUNCS, GroupsIpcArray}
,
{0, NULL}
{N_IPC_FUNCS, GroupsIpcArray},
{N_CFG_ITEMS, GroupsCfgItems}
};

View File

@ -96,9 +96,6 @@ MiscSighan(int sig, void *prm __UNUSED__)
#endif
static const CfgItem MiscCfgItems[] = {
CFG_ITEM_INT(Conf, backgrounds.hiquality, 1),
CFG_ITEM_INT(Conf, backgrounds.timeout, 240),
CFG_ITEM_BOOL(Conf, backgrounds.user, 1),
CFG_ITEM_BOOL(Conf, dialogs.headers, 0),
CFG_ITEM_BOOL(Conf, dialogs.button_image, 0),
@ -109,16 +106,6 @@ static const CfgItem MiscCfgItems[] = {
CFG_ITEM_INT(Conf, dock.startx, 0),
CFG_ITEM_INT(Conf, dock.starty, 0),
CFG_ITEM_BOOL(Conf, groups.dflt.iconify, 1),
CFG_ITEM_BOOL(Conf, groups.dflt.kill, 0),
CFG_ITEM_BOOL(Conf, groups.dflt.mirror, 1),
CFG_ITEM_BOOL(Conf, groups.dflt.move, 1),
CFG_ITEM_BOOL(Conf, groups.dflt.raise, 0),
CFG_ITEM_BOOL(Conf, groups.dflt.set_border, 1),
CFG_ITEM_BOOL(Conf, groups.dflt.stick, 1),
CFG_ITEM_BOOL(Conf, groups.dflt.shade, 1),
CFG_ITEM_BOOL(Conf, groups.swapmove, 1),
CFG_ITEM_BOOL(Conf, hints.set_xroot_info_on_root_window, 0),
CFG_ITEM_INT(Conf, movres.mode_move, 0),

View File

@ -2410,7 +2410,6 @@ static const CfgItem PagersCfgItems[] = {
CFG_ITEM_INT(Conf.pagers, sel_button, 2),
CFG_ITEM_INT(Conf.pagers, win_button, 1),
CFG_ITEM_INT(Conf.pagers, menu_button, 3),
};
#define N_CFG_ITEMS (sizeof(PagersCfgItems)/sizeof(CfgItem))