Hi

thanks a lot! I found another dirty way of doing it though
using counter ;)

thanks again
Saurabh

On 1/8/07, zentara <[EMAIL PROTECTED]> wrote:

On Sun, 7 Jan 2007 20:54:39 +0000, [EMAIL PROTECTED] ("Saurabh
Singhvi") wrote:

>Hi all,
>
>thanks for both of the links, I already seem to have grasped
>some things. I have one more issue at hand now, which I am
>not able to handle right. If I do window->hide_all, what is the functon
>to know it's hidden?
>thanks
>Saurabh

The trick to reading the Gtk2 perldocs, is to look at the Heirarchy
tree, and move up the tree until you find the object that controls
whatever.  So a Gtk2::Window is a Gtk2::Widget  and it's the

boolean = $widget->is_mapped

method. Think of "is it mapped out on the screen".

#!/usr/bin/perl
use warnings;
use strict;
use Gtk2 -init;

my $window = Gtk2::Window->new;
$window->add( Gtk2::Label->new("Yaada yadda yadda") );
$window->show_all;
$window->signal_connect( delete_event => sub { exit });

#$window->hide_all;
print "mapped ?-> ",$window->mapped,"\n";

Gtk2->main;
__END__


--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/



Reply via email to