Re: libwnck doesn't work well in gtk-perl?

Shaya Potter wrote:
zentara wrote:
On Tue, 20 Mar 2007 20:17:16 -0400
Shaya Potter <spotter cs columbia edu> wrote:

I don't know if this is the best fix, but your script will work if you
the event-loop each cycle.  By the way, using a while loop and sleep
in a gui, is BAD BAD BAD. Use a timer instead to call the sub every second.

in trying to rewrite my script to have a callback whenever any window
title changes (ala a tasklist, but this isn't a gui), instead of looping
or using a time out, I'm having a hard time figuring out which signal to
connect to.  Anyone have any ideas?

According to the generated pod...  (see the SIGNALS section of each page)

Gnome2::Wnck::Window's name-changed signal sounds rather like exactly what you
want.  However, the Window object is a one-to-one representation of the
windows on the screen, so you'd have to track changes in the set of windows on
the screen.

To that end, Gnome2::Wnck::Screen has several signals that sound useful,
window-opened and window-closed in particular.

muppet <scott at asofyet dot org>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]