xwem-devel
[Top] [All Lists]

Re: little prob with eicq-xwem.el :-(

From: Zajcev Evgeny <zevlg@xxxxxxxxx>
Subject: Re: little prob with eicq-xwem.el :-(
Date: Wed, 16 Nov 2005 09:57:20 +0300
Cc: xwem devel <xwem-devel@xxxxxxxx>
User-agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.17 (Jumbo Shrimp, linux)
Steve Youngs <steve@xxxxxxxx> writes:

> Hey man!
>
> I just noticed a problem with eicq-xwem.el that I hope you can help me
> with.
>
> The problem shows up when you run Eicq in a tty (gnuclient -nw in an
> xterm in XWEM, for example).
>
> (defun eicq-xwem-activity-off ()
>   "Make the Eicq/XWEM activity indicator inactive."
>   (when (xwem-osd-p eicq-xwem-osd)
>     (xwem-osd-icon-data-add eicq-xwem-osd eicq-xwem-inactive)))
>
> This gives a "numberp: nil" error
>
> (defun eicq-xwem-activity-on ()
>   "Make the Eicq/XWEM activity indicator active."
>   (when (xwem-osd-p eicq-xwem-osd)
>     (xwem-osd-icon-data-add eicq-xwem-osd eicq-xwem-active)))
>
> This gives a "color-instance-p: nil" error
>
> What stupidity have I done here?

This is not your stupidity.  Looks like problem in xlib to fix it do -
in file xlib-2.2/lisp/xlib-xpm.el change:

  (make-color-instance (if (string= "none" (downcase (cadr pco)))
                           "white"
                         (cadr pco)))))

to

  (make-color-instance (if (string= "none" (downcase (cadr pco)))
                           "white"
                         (cadr pco)) (default-x-device)))))

If this will fix the problem and then you will provide merge request
with patch it will be extremely appreciated :)

Thanks!

-- 
lg

<Prev in Thread] Current Thread [Next in Thread>