On Wed, 2006-09-06 at 14:54 +0200, Ratcliffe, Jeffrey (Peters) wrote:
> How do I check whether a window has been maximized or not?
Connect a callback to the 'window-state-event' event, and check the
passed Gtk2::Gdk::Event::WindowState when the event is fired; the
changed_mask member of the event should contain the 'maximized' flag.
$window->signal_connect(window_state_event => sub {
my ($w, $event) = @_;
if ($event->changed_mask & [ 'maximized', ]) {
print "The window has been maximized\n";
}
});
Ciao,
Emmanuele.
--
Emmanuele Bassi, E: [EMAIL PROTECTED]
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net
_______________________________________________
gtk-perl-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-perl-list