4104f842954839e9c1767da6bf939ada9dcf2c97
[wmaker-crm.git] / src / defaults.h
blob4104f842954839e9c1767da6bf939ada9dcf2c97
1 /*
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.
21 #ifndef WMDEFAULTS_H_
22 #define WMDEFAULTS_H_
24 typedef struct WDDomain {
25 char *domain_name;
26 WMPropList *dictionary;
27 char *path;
28 time_t timestamp;
29 } WDDomain;
31 WDDomain * wDefaultsInitDomain(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(char *instance, char *class,
41 WWindowAttributes *attr, WWindowAttributes *mask,
42 Bool useGlobalDefault);
44 char *get_default_image_path(WScreen *scr);
45 char *wDefaultGetIconFile(char *instance, char *class, Bool default_icon);
47 RImage * wDefaultGetImage(WScreen *scr, char *winstance, char *wclass, int max_size);
50 int wDefaultGetStartWorkspace(WScreen *scr, char *instance, char *class);
51 void wDefaultChangeIcon(WScreen *scr, char *instance, char* class, char *file);
52 RImage *get_default_image(WScreen *scr);
53 char *get_default_icon_filename(WScreen *scr, char *winstance, char *wclass, char *command,
54 Bool default_icon);
55 RImage *get_rimage_from_file(WScreen *scr, char *file_name, int max_size);
56 #endif /* WMDEFAULTS_H_ */