2 * Window Maker window manager
4 * Copyright (c) 1997-2003 Alfredo K. Kojima
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 typedef struct WDDomain
{
25 const char *domain_name
;
26 WMPropList
*dictionary
;
31 WDDomain
* wDefaultsInitDomain(const char *domain
, Bool requireDictionary
);
33 void wDefaultsMergeGlobalMenus(WDDomain
*menuDomain
);
35 void wReadDefaults(WScreen
*scr
, WMPropList
*new_dict
);
36 void wDefaultUpdateIcons(WScreen
*scr
);
37 void wReadStaticDefaults(WMPropList
*dict
);
38 void wDefaultsCheckDomains(void *arg
);
39 void wSaveDefaults(WScreen
*scr
);
40 void wDefaultFillAttributes(const char *instance
, const char *class,
41 WWindowAttributes
*attr
, WWindowAttributes
*mask
,
42 Bool useGlobalDefault
);
44 char *get_default_image_path(void);
45 RImage
*get_default_image(WScreen
*scr
);
47 char *wDefaultGetIconFile(const char *instance
, const char *class, Bool default_icon
);
49 RImage
*get_icon_image(WScreen
*scr
, const char *winstance
, const char *wclass
, int max_size
);
50 char *get_icon_filename(const char *winstance
, const char *wclass
, const char *command
,
54 int wDefaultGetStartWorkspace(WScreen
*scr
, const char *instance
, const char *class);
55 void wDefaultChangeIcon(const char *instance
, const char* class, const char *file
);
56 RImage
*get_rimage_from_file(WScreen
*scr
, const char *file_name
, int max_size
);
58 void wDefaultPurgeInfo(const char *instance
, const char *class);
60 #endif /* WMDEFAULTS_H_ */