From 66b52a67bc86a0de209e9b7f97a28572ba574654 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Sun, 18 May 2008 20:03:28 +0000 Subject: extract expanded variable --- lib/network/netcenter.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm index 66f03f8..148a409 100755 --- a/lib/network/netcenter.pm +++ b/lib/network/netcenter.pm @@ -107,7 +107,8 @@ sub main { my $eventbox = gtksignal_connect(Gtk2::EventBox->new, button_press_event => sub { $_[1]->button == 1 or return; $toggle_expand->(); - $expander->set_expanded(!$expander->get_expanded); + my $expanded = !$expander->get_expanded; + $expander->set_expanded($expanded); }); my $box = gtknew('VBox', spacing => 5, children_tight => [ gtknew('HBox', children => [ -- cgit v1.2.1