Article View: news.software.readers
Article #59882Re: [slrn] How about a hook for article view hiding/unhiding?
From: Drazen Kacar
Date: Fri, 31 Mar 2000 00:00
Date: Fri, 31 Mar 2000 00:00
43 lines
3364 bytes
3364 bytes
Dawn Owens-Nicholson wrote:
> Drazen Kacar wrote:
> Another way to go would be a hook which runs every time there is either a
> hide/unhide change *or* the article in the view changes (not including a
> change made by replace_article(), of course, since you know whether your
> article is different from what's already there). Unfortunately, this means
> even more places this hook would be called, but I imagine it would be quite
> handy for you since you need to be notified when to update the rendered
> X-Face image.
Yet another way is to throw away all hooks and register handler functions
for state changes, where the set of possible states consists of all
variables present in slrnrc. If case some state variable changes value,
slrn calls all functions which have interest in that state change in order
of registration. But that would probably be too much trouble to implement.
> > No. It's not a top level window managed by a Window Manager.
>
> How about making it a top level window?
>
> I would have thought you could take some PBM utility to convert the X-Face
> data into something commonly manipulated (like a PNG, for instance) and
> render the PNG into a window, updating the window's content when necessary
> (like when the article view changes).
There's no need. X-Faces have only two colors and Xlib can manipulate that
much. There's libcompface call to uncompress the data, some bit shifting to
put it in XBM format, Xlib call to convert it to Pixmap, another Xlib
call to paint it on the screen and that's it. And no geometry handling,
because X server will do it.
> Good luck in your endeavour.
I'll post the code in an hour or two.
--
.-. .-. I don't work for my employer.
(_ \ / _)
| dave@srce.hr
| dave@fly.srk.fer.hr
Technical Details
Message-ID:
<slrn8e8l3d.ot3.dave@svarozic.srce.hr>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn8dru4f.1fu.ajlewis2@sidekick.com> <slrn8dsj5c.d5.efflandt@efflandt.xnet.com> <slrn8dsllf.nk.ajlewis2@sidekick.com> <slrn8dt1tg.g53.dave@svarozic.srce.hr> <86d7ohw8in.fsf@ragndahl.cx> <slrn8e6k9p.lrb.dave@svarozic.srce.hr> <slrn8e6n1m.lt6.dave@svarozic.srce.hr> <slrn8e7d60.2s1.bluemoon@ux6.cso.uiuc.edu> <slrn8e7ias.mkf.dave@svarozic.srce.hr> <slrn8e88it.lgc.bluemoon@ux6.cso.uiuc.edu> <slrn8e8cuq.oj3.dave@svarozic.srce.hr> <slrn8e8ims.lgc.bluemoon@ux6.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn8e8l3d.ot3.dave@svarozic.srce.hr>
Subject: Re: [slrn] How about a hook for article view hiding/unhiding?
Date: Fri, 31 Mar 2000 00:00:00 +0000
From: dave@srce.hr (Drazen Kacar)
References: <slrn8dru4f.1fu.ajlewis2@sidekick.com> <slrn8dsj5c.d5.efflandt@efflandt.xnet.com> <slrn8dsllf.nk.ajlewis2@sidekick.com> <slrn8dt1tg.g53.dave@svarozic.srce.hr> <86d7ohw8in.fsf@ragndahl.cx> <slrn8e6k9p.lrb.dave@svarozic.srce.hr> <slrn8e6n1m.lt6.dave@svarozic.srce.hr> <slrn8e7d60.2s1.bluemoon@ux6.cso.uiuc.edu> <slrn8e7ias.mkf.dave@svarozic.srce.hr> <slrn8e88it.lgc.bluemoon@ux6.cso.uiuc.edu> <slrn8e8cuq.oj3.dave@svarozic.srce.hr> <slrn8e8ims.lgc.bluemoon@ux6.cso.uiuc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 604692287
Mail-Copies-To: never
X-Complaints-To: abuse@news.carnet.hr
X-Trace: bagan.srce.hr 954487974 8427 161.53.2.157 (31 Mar 2000 07:32:54 GMT)
X-Face: 'UIE}WabGB0+U>p-#(hp<_+AD2{H],=qR*jHfm$/e]l0(kU3oOYc5lqG6gg>[\h^IOc{'siD6#!T&loIShgmYHz3#+*D38:|`~\BE,(W~Ol9BDfDwk'lKJ;Z{sY8E9(ME.E]'wvNO`$n#,;9Z`tOFcW/nHZq!BOSrM>V?C<5DTw=<$<xxB~RP@|-Co<|COgeVi1ozw_W>{c{M2V+|)0jSUl&!+8%8nIBF(u:E>SZWM^e
Organization: Δardak ni na nebu, ni na zemlji
X-Attribution: Dave
User-Agent: slrn/0.9.6.0 (SunOS)
NNTP-Posting-Date: 31 Mar 2000 07:32:54 GMT
Newsgroups: news.software.readers