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
|
2004-10-12 21:28:27 +00:00
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
1998-09-29 22:36:29 +00:00
|
|
|
* USA.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef WMDEFAULTS_H_
|
|
|
|
|
#define WMDEFAULTS_H_
|
|
|
|
|
|
|
|
|
|
typedef struct WDDomain {
|
|
|
|
|
char *domain_name;
|
2001-10-04 03:07:34 +00:00
|
|
|
WMPropList *dictionary;
|
1998-09-29 22:36:29 +00:00
|
|
|
char *path;
|
|
|
|
|
time_t timestamp;
|
|
|
|
|
} WDDomain;
|
|
|
|
|
|
|
|
|
|
#if 0
|
2001-10-04 03:07:34 +00:00
|
|
|
WMPropList* wDefaultsInit(int screen_number);
|
1998-09-29 22:36:29 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
2001-10-04 03:07:34 +00:00
|
|
|
WDDomain* wDefaultsInitDomain(char *domain, Bool requireDictionary);
|
1998-09-29 22:36:29 +00:00
|
|
|
|
2003-06-06 02:51:47 +00:00
|
|
|
void wDefaultsMergeGlobalMenus(WDDomain *menuDomain);
|
|
|
|
|
|
1998-09-29 22:36:29 +00:00
|
|
|
void wDefaultsDestroyDomain(WDDomain *domain);
|
|
|
|
|
|
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);
|
1998-09-29 22:36:29 +00:00
|
|
|
|
2009-08-18 15:14:00 +02:00
|
|
|
void wDefaultsCheckDomains(void);
|
1998-09-29 22:36:29 +00:00
|
|
|
|
|
|
|
|
void wSaveDefaults(WScreen *scr);
|
|
|
|
|
|
|
|
|
|
char *wDefaultGetIconFile(WScreen *scr, char *instance, char *class,
|
2004-10-12 21:28:27 +00:00
|
|
|
Bool noDefault);
|
1998-09-29 22:36:29 +00:00
|
|
|
|
1999-01-06 15:22:33 +00:00
|
|
|
RImage *wDefaultGetImage(WScreen *scr, char *winstance, char *wclass);
|
1998-09-29 22:36:29 +00:00
|
|
|
|
1999-01-06 15:22:33 +00:00
|
|
|
void wDefaultFillAttributes(WScreen *scr, char *instance, char *class,
|
2004-10-12 21:28:27 +00:00
|
|
|
WWindowAttributes *attr, WWindowAttributes *mask,
|
|
|
|
|
Bool useGlobalDefault);
|
1998-09-29 22:36:29 +00:00
|
|
|
|
|
|
|
|
int wDefaultGetStartWorkspace(WScreen *scr, char *instance, char *class);
|
|
|
|
|
|
|
|
|
|
void wDefaultChangeIcon(WScreen *scr, char *instance, char* class, char *file);
|
|
|
|
|
|
|
|
|
|
#endif /* WMDEFAULTS_H_ */
|
1999-01-06 15:22:33 +00:00
|
|
|
|