mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
- Finished moving to the new proplist handling code in WINGs.
- Also tested the backward compatibility ability of the WINGs proplist code which seems to work quite well. Starting with this moment, Window Maker no longer needs libPropList and is now using the better and much more robust proplist code from WINGs. Also the WINGs based proplist code is actively maintained while the old libPropList code is practically dead and flawed by the fact that it borrowed concepts from the UserDefaults which conflicted with the retain/release mechanism, making some problems that libPropList had, practically unsolvable without a complete redesign (which can be found in the more robust WINGs code).
This commit is contained in:
23
src/dialog.c
23
src/dialog.c
@@ -503,7 +503,6 @@ static void
|
||||
keyPressHandler(XEvent *event, void *data)
|
||||
{
|
||||
IconPanel *panel = (IconPanel*)data;
|
||||
Display *dpy = event->xany.display;
|
||||
char buffer[32];
|
||||
int count;
|
||||
KeySym ksym;
|
||||
@@ -1592,28 +1591,28 @@ setCrashAction(void *self, void *clientData)
|
||||
static WMPixmap*
|
||||
getWindowMakerIconImage(WMScreen *scr)
|
||||
{
|
||||
proplist_t dict, key, option, value=NULL;
|
||||
WMPropList *dict, *key, *option, *value=NULL;
|
||||
WMPixmap *pix=NULL;
|
||||
char *path;
|
||||
|
||||
PLSetStringCmpHook(NULL);
|
||||
WMPLSetCaseSensitive(True);
|
||||
|
||||
key = PLMakeString("Logo.WMPanel");
|
||||
option = PLMakeString("Icon");
|
||||
key = WMCreatePLString("Logo.WMPanel");
|
||||
option = WMCreatePLString("Icon");
|
||||
|
||||
dict = PLGetDictionaryEntry(WDWindowAttributes->dictionary, key);
|
||||
dict = WMGetFromPLDictionary(WDWindowAttributes->dictionary, key);
|
||||
|
||||
if (dict) {
|
||||
value = PLGetDictionaryEntry(dict, option);
|
||||
value = WMGetFromPLDictionary(dict, option);
|
||||
}
|
||||
|
||||
PLRelease(key);
|
||||
PLRelease(option);
|
||||
WMReleasePropList(key);
|
||||
WMReleasePropList(option);
|
||||
|
||||
PLSetStringCmpHook(StringCompareHook);
|
||||
WMPLSetCaseSensitive(False);
|
||||
|
||||
if (value && PLIsString(value)) {
|
||||
path = FindImage(wPreferences.icon_path, PLGetString(value));
|
||||
if (value && WMIsPLString(value)) {
|
||||
path = FindImage(wPreferences.icon_path, WMGetFromPLString(value));
|
||||
|
||||
if (path) {
|
||||
RColor gray;
|
||||
|
||||
Reference in New Issue
Block a user