Possibly it should read like this (haven't tried)
+void
+drawicon(const char *file, unsigned long col[ColLast]) {
+ Pixmap icon;
+ unsigned int x, iw, ih, ix, iy;
+ x = dc.x;
+ icon = XCreatePixmap(dpy, dc.drawable, 12, 12, 1);
+ XReadBitmapFile(dpy, dc.drawable, file, &iw, &ih, &icon, &ix, &iy);
+
+ XSetForeground(dpy, dc.gc, col[ColBG]);
+ XFillRectangle(dpy, dc.drawable, dc.gc, x, 0, iw, ih);
+
+ XSetForeground(dpy, dc.gc, col[ColFG]);
+ XSetBackground(dpy, dc.gc, col[ColBG]);
+ XCopyPlane(dpy, icon, dc.drawable, dc.gc, ix, iy, iw, ih, x, 0, 1);
+}
2008/10/21, Henry <el.rey.de.wonns_AT_googlemail.com>:
> On Tue, 21 Oct 2008 08:04:43 +0200, Amit Uttamchandani <atu13439_AT_csun.edu>
> wrote:
>
>> On Tue, 21 Oct 2008 11:12:15 +0900
>> "Alexandr Gubanoff" <agubanoff_AT_gmail.com> wrote:
>>
>>> Hi. I am very bad speak English.
>>> I make no big patch to display icons in dwm-bar.
>>>
>>
>> Hi,
>>
>> What is the font family and color scheme you are using there?
>>
>> Thanks,
>> Amit
>>
>
> Like to know that too. :)
>
>
Received on Tue Oct 21 2008 - 19:09:26 UTC
This archive was generated by hypermail 2.2.0 : Tue Oct 21 2008 - 19:12:05 UTC