Lines 1-6
Link Here
|
1 |
--- src/SoundPaths.c.orig Sat Jun 19 02:08:04 1999 |
1 |
--- src/SoundPaths.c.orig Mon Jun 14 17:28:21 1999 |
2 |
+++ src/SoundPaths.c Sat Jun 19 23:23:41 1999 |
2 |
+++ src/SoundPaths.c Sun Apr 10 21:41:00 2005 |
3 |
@@ -71,6 +71,7 @@ |
3 |
@@ -42,7 +42,8 @@ |
|
|
4 |
Panel *panel = (Panel*)WMGetHangedData(lPtr); |
5 |
WMScreen *scr = WMWidgetScreen(lPtr); |
6 |
Display *dpy = WMScreenDisplay(scr); |
7 |
- |
8 |
+ WMColor *gray = WMGrayColor(scr); |
9 |
+ |
10 |
width = rect->size.width; |
11 |
height = rect->size.height; |
12 |
x = rect->pos.x; |
13 |
@@ -50,13 +51,16 @@ |
14 |
|
15 |
if (state & WLDSSelected) |
16 |
XFillRectangle(dpy, d, WMColorGC(panel->white), x, y, width, height); |
17 |
- else |
18 |
- XClearArea(dpy, d, x, y, width, height, False); |
19 |
+ else |
20 |
+ XFillRectangle(dpy, d, WMColorGC(gray), x, y, width, height); |
21 |
+ |
22 |
|
23 |
if (state & 1) |
24 |
- WMDrawString(scr, d, WMColorGC(panel->red), panel->font, x+4, y, text, strlen(text)); |
25 |
+ WMDrawString(scr, d, panel->red, panel->font, x+4, y, text, strlen(text)); |
26 |
else |
27 |
- WMDrawString(scr, d, WMColorGC(panel->black), panel->font, x+4, y,text, strlen(text)); |
28 |
+ WMDrawString(scr, d, panel->black, panel->font, x+4, y,text, strlen(text)); |
29 |
+ |
30 |
+ WMReleaseColor(gray); |
31 |
} |
32 |
|
33 |
void |
34 |
@@ -71,6 +75,7 @@ |
4 |
wwarning(_("bad value in option SoundPath. Using default path list")); |
35 |
wwarning(_("bad value in option SoundPath. Using default path list")); |
5 |
addPathToList(panel->sndL, -1, "~/GNUstep/Library/WindowMaker/Sounds"); |
36 |
addPathToList(panel->sndL, -1, "~/GNUstep/Library/WindowMaker/Sounds"); |
6 |
addPathToList(panel->sndL, -1, "/usr/local/share/WindowMaker/Sounds"); |
37 |
addPathToList(panel->sndL, -1, "/usr/local/share/WindowMaker/Sounds"); |
Lines 8-18
Link Here
|
8 |
} else { |
39 |
} else { |
9 |
for (i=0; i<PLGetNumberOfElements(array); i++) { |
40 |
for (i=0; i<PLGetNumberOfElements(array); i++) { |
10 |
val = PLGetArrayElement(array, i); |
41 |
val = PLGetArrayElement(array, i); |
11 |
@@ -91,6 +92,7 @@ |
|
|
12 |
wwarning(_("bad value in option SoundSetPath. Using default path list")); |
13 |
addPathToList(panel->sndsetL, -1, "~/GNUstep/Library/WindowMaker/SoundSets"); |
14 |
addPathToList(panel->sndsetL, -1, "/usr/local/share/WindowMaker/SoundSets"); |
15 |
+ addPathToList(panel->sndsetL, -1, "/usr/X11R6/share/WindowMaker/SoundSets"); |
16 |
} else { |
17 |
for (i=0; i<PLGetNumberOfElements(array); i++) { |
18 |
val = PLGetArrayElement(array, i); |