[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Existence Announcement
- From: Torsten Schoenfeld <kaffeetisch gmx de>
- To: gtk-perl-list gnome org
- Subject: Re: Existence Announcement
- Date: Wed, 06 Apr 2005 09:45:35 +0200
On Tue, 2005-04-05 at 23:45 -0400, muppet wrote:
> but gdk does not expose a direct wrapper for XQueryTree(), so there is
> no way to search all of the windows on the display for one with the
> desired property. the X11::Protocol module on CPAN provides this
> functionality, or, if you already have some xs in your app, you could
> very easily create your own function to do this with Xlib.
Gnome2::Wnck to the rescue:
use Gtk2 -init;
use Gnome2::Wnck;
my $screen = Gnome2::Wnck::Screen -> get_default();
$screen -> force_update();
foreach ($screen -> get_windows()) {
my $window = Gtk2::Gdk::Window -> foreign_new($_ -> get_xid());
# Now do the property stuff.
}
--
Bye,
-Torsten
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]