[hackers] [dmenu] new libdraw, typo fixes || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Thu, 5 Aug 2010 14:42:05 +0000 (UTC)

changeset: 351:8e019362118b
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Thu Aug 05 15:41:56 2010 +0100
files: dmenu.1 dmenu.c
description:
new libdraw, typo fixes

diff -r 4f0e3c37bdc3 -r 8e019362118b dmenu.1
--- a/dmenu.1 Tue Aug 03 18:19:59 2010 +0100
+++ b/dmenu.1 Thu Aug 05 15:41:56 2010 +0100
@@ -52,7 +52,7 @@
 dmenu lists items vertically, with the given number of lines.
 .TP
 .BI \-p " prompt"
-defines the prompt to be displayed to the left of the input area.
+defines the prompt to be displayed to the left of the input field.
 .TP
 .BI \-fn " font"
 defines the font set used.
diff -r 4f0e3c37bdc3 -r 8e019362118b dmenu.c
--- a/dmenu.c Tue Aug 03 18:19:59 2010 +0100
+++ b/dmenu.c Thu Aug 05 15:41:56 2010 +0100
@@ -119,7 +119,7 @@
                 dc->x = dc->w;
         }
         dc->w = mw - dc->x;
- /* print input area */
+ /* print input field */
         if(matches && lines == 0 && textw(dc, text) <= inputw)
                 dc->w = inputw;
         drawtext(dc, text, normcol);
@@ -339,7 +339,7 @@
 
 void
 match(void) {
- unsigned int len;
+ size_t len;
         Item *item, *itemend, *lexact, *lprefix, *lsubstr, *exactend, *prefixend, *substrend;
 
         len = strlen(text);
@@ -454,7 +454,7 @@
         selcol[ColBG] = getcolor(dc, selbgcolor);
         selcol[ColFG] = getcolor(dc, selfgcolor);
 
- /* input window geometry */
+ /* menu geometry */
         mh = (dc->font.height + 2) * (lines + 1);
 #ifdef XINERAMA
         if((info = XineramaQueryScreens(dc->dpy, &n))) {
@@ -478,7 +478,7 @@
                 y = topbar ? 0 : DisplayHeight(dc->dpy, screen) - mh;
                 mw = DisplayWidth(dc->dpy, screen);
         }
- /* input window */
+ /* menu window */
         wa.override_redirect = True;
         wa.background_pixmap = ParentRelative;
         wa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask;
@@ -488,7 +488,7 @@
                         CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
 
         grabkeyboard();
- setcanvas(dc, win, mw, mh);
+ setcanvas(dc, mw, mh);
         inputw = MIN(inputw, mw/3);
         promptw = prompt ? MIN(textw(dc, prompt), mw/5) : 0;
         XMapRaised(dc->dpy, win);
Received on Thu Aug 05 2010 - 16:42:05 CEST

This archive was generated by hypermail 2.2.0 : Thu Aug 05 2010 - 16:48:05 CEST