[hackers] [dmenu] renamed getcolor to initcolor

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Tue Feb 20 13:58:16 2007

changeset: 165:ffa9c3a8c755
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Tue Feb 20 13:57:05 2007 +0100
summary: renamed getcolor to initcolor

diff -r 8ca8962b48c9 -r ffa9c3a8c755 main.c
--- a/main.c Tue Feb 20 13:54:37 2007 +0100
+++ b/main.c Tue Feb 20 13:57:05 2007 +0100
@@ -109,7 +109,7 @@ drawmenu(void) {
 }
 
 static unsigned long
-getcolor(const char *colstr) {
+initcolor(const char *colstr) {
         Colormap cmap = DefaultColormap(dpy, screen);
         XColor color;
 
@@ -470,10 +470,10 @@ main(int argc, char *argv[]) {
         }
         XFreeModifiermap(modmap);
         /* style */
- dc.norm[ColBG] = getcolor(normbg);
- dc.norm[ColFG] = getcolor(normfg);
- dc.sel[ColBG] = getcolor(selbg);
- dc.sel[ColFG] = getcolor(selfg);
+ dc.norm[ColBG] = initcolor(normbg);
+ dc.norm[ColFG] = initcolor(normfg);
+ dc.sel[ColBG] = initcolor(selbg);
+ dc.sel[ColFG] = initcolor(selfg);
         initfont(font);
         /* menu window */
         wa.override_redirect = 1;
Received on Tue Feb 20 2007 - 13:58:16 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:33 UTC