1998-09-29 22:36:29 +00:00
|
|
|
/*
|
1998-10-21 14:43:47 +00:00
|
|
|
* Window Maker window manager
|
2004-10-12 21:28:27 +00:00
|
|
|
*
|
2003-01-16 23:30:45 +00:00
|
|
|
* Copyright (c) 1997-2003 Alfredo K. Kojima
|
2004-10-12 21:28:27 +00:00
|
|
|
*
|
1998-09-29 22:36:29 +00:00
|
|
|
* This program 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.
|
|
|
|
|
*
|
2010-10-08 01:32:11 +02:00
|
|
|
* 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 02110-1301 USA.
|
1998-09-29 22:36:29 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef WMDEFAULTS_H_
|
|
|
|
|
#define WMDEFAULTS_H_
|
|
|
|
|
|
|
|
|
|
typedef struct WDDomain {
|
2013-06-16 17:57:46 +02:00
|
|
|
const char *domain_name;
|
2012-04-14 02:27:33 +02:00
|
|
|
WMPropList *dictionary;
|
2013-06-16 17:57:46 +02:00
|
|
|
const char *path;
|
2012-04-14 02:27:33 +02:00
|
|
|
time_t timestamp;
|
1998-09-29 22:36:29 +00:00
|
|
|
} WDDomain;
|
|
|
|
|
|
2013-06-16 17:57:46 +02:00
|
|
|
WDDomain * wDefaultsInitDomain(const char *domain, Bool requireDictionary);
|
1998-09-29 22:36:29 +00:00
|
|
|
|
2003-06-06 02:51:47 +00:00
|
|
|
void wDefaultsMergeGlobalMenus(WDDomain *menuDomain);
|
|
|
|
|
|
2001-10-04 03:07:34 +00:00
|
|
|
void wReadDefaults(WScreen *scr, WMPropList *new_dict);
|
1998-09-29 22:36:29 +00:00
|
|
|
void wDefaultUpdateIcons(WScreen *scr);
|
2001-10-04 03:07:34 +00:00
|
|
|
void wReadStaticDefaults(WMPropList *dict);
|
2010-03-18 19:18:18 +01:00
|
|
|
void wDefaultsCheckDomains(void *arg);
|
1998-09-29 22:36:29 +00:00
|
|
|
void wSaveDefaults(WScreen *scr);
|
2013-06-16 17:57:48 +02:00
|
|
|
void wDefaultFillAttributes(const char *instance, const char *class,
|
2012-04-14 02:27:33 +02:00
|
|
|
WWindowAttributes *attr, WWindowAttributes *mask,
|
|
|
|
|
Bool useGlobalDefault);
|
|
|
|
|
|
2012-11-10 19:25:56 +01:00
|
|
|
char *get_default_image_path(void);
|
2012-11-10 19:25:55 +01:00
|
|
|
RImage *get_default_image(WScreen *scr);
|
|
|
|
|
|
2013-06-16 17:57:48 +02:00
|
|
|
char *wDefaultGetIconFile(const char *instance, const char *class, Bool default_icon);
|
1998-09-29 22:36:29 +00:00
|
|
|
|
2013-06-16 17:57:50 +02:00
|
|
|
RImage *get_icon_image(WScreen *scr, const char *winstance, const char *wclass, int max_size);
|
2013-09-05 21:08:18 +02:00
|
|
|
char *get_icon_filename(const char *winstance, const char *wclass, const char *command,
|
2012-11-10 19:25:55 +01:00
|
|
|
Bool default_icon);
|
1998-09-29 22:36:29 +00:00
|
|
|
|
|
|
|
|
|
2013-10-12 12:40:21 +02:00
|
|
|
int wDefaultGetStartWorkspace(const char *instance, const char *class);
|
2013-10-12 15:35:52 +02:00
|
|
|
void wDefaultChangeIcon(const char *instance, const char* class, const char *file);
|
2013-06-16 17:57:50 +02:00
|
|
|
RImage *get_rimage_from_file(WScreen *scr, const char *file_name, int max_size);
|
2013-04-12 01:42:39 +02:00
|
|
|
|
2013-10-12 15:35:52 +02:00
|
|
|
void wDefaultPurgeInfo(const char *instance, const char *class);
|
2013-04-12 01:42:39 +02:00
|
|
|
|
1998-09-29 22:36:29 +00:00
|
|
|
#endif /* WMDEFAULTS_H_ */
|