Files
wmaker/src/defaults.h
T

61 lines
2.2 KiB
C
Raw Normal View History

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.
*
* 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 {
const char *domain_name;
2012-04-14 02:27:33 +02:00
WMPropList *dictionary;
const char *path;
2012-04-14 02:27:33 +02:00
time_t timestamp;
1998-09-29 22:36:29 +00:00
} WDDomain;
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);
void wReadDefaults(WScreen *scr, WMPropList *new_dict);
1998-09-29 22:36:29 +00:00
void wDefaultUpdateIcons(WScreen *scr);
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);
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);
char *wDefaultGetIconFile(const char *instance, const char *class, Bool default_icon);
1998-09-29 22:36:29 +00: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);
void wDefaultChangeIcon(const char *instance, const char* class, const char *file);
RImage *get_rimage_from_file(WScreen *scr, const char *file_name, int max_size);
void wDefaultPurgeInfo(const char *instance, const char *class);
1998-09-29 22:36:29 +00:00
#endif /* WMDEFAULTS_H_ */