Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dtterm and unusual icons

0 views
Skip to first unread message

Charles Lindsey

unread,
Feb 8, 2007, 4:39:12 PM2/8/07
to
Using solaris 10 on a sparc and trying to run an applications within
dtterm, hence the need to have a special icon to make it easily recognized
when iconized.

So if I write

dtterm -xrm '*iconPixmap:SDtErrors.l'

it says

Warning: Cannot convert string "SDtErrors.l" to type Pixmap
Warning: Cannot convert string "SDtErrors.l" to type Pixmap

But if I then iconize the dtterm window, lo and behold it is indeed using
the SDtErrors pixmap (which it found, according to truss, in
/usr/dt/appconfig/icons/C/SDtErrors.l.pm).

So why is that?

Some poking around with DBX showed that it gets into CvtStringToPixmap,
and while still within the saem call of that routine it first calls
GetPixmap (which indeed finds the right file as mentioned) and after that
it calls XtDisplayConversionWarning, which prints on stderr the warning
you see (I think the second was when it was repeating the whole thing
when building the widget for the icon itself).

--
Charles H. Lindsey ---------At Home, doing my own thing------------------------
Tel: +44 161 436 6131 Fax: +44 161 436 6133 Web: http://www.cs.man.ac.uk/~chl
Email: c...@clerew.man.ac.uk Snail: 5 Clerewood Ave, CHEADLE, SK8 3JU, U.K.
PGP: 2C15F1A9 Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5

Thomas Dickey

unread,
Feb 9, 2007, 6:27:27 AM2/9/07
to
In comp.unix.solaris Charles Lindsey <c...@clerew.man.ac.uk> wrote:
> dtterm -xrm '*iconPixmap:SDtErrors.l'
...

> Warning: Cannot convert string "SDtErrors.l" to type Pixmap
> Warning: Cannot convert string "SDtErrors.l" to type Pixmap
...
> So why is that?

It's likely that some other widgets than the one you intended are doing the
complaining. (That's because of the "*" in the pattern - lots of widgets
get to offer an opinion).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

Charles Lindsey

unread,
Feb 13, 2007, 6:11:10 PM2/13/07
to

>In comp.unix.solaris Charles Lindsey <c...@clerew.man.ac.uk> wrote:
>> dtterm -xrm '*iconPixmap:SDtErrors.l'
>...
>> Warning: Cannot convert string "SDtErrors.l" to type Pixmap
>> Warning: Cannot convert string "SDtErrors.l" to type Pixmap
>...
>> So why is that?

>It's likely that some other widgets than the one you intended are doing the
>complaining. (That's because of the "*" in the pattern - lots of widgets
>get to offer an opinion).

No. Even Dtterm.iconPixmap:SDtErrors.l causes the same response.

0 new messages