summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-18 20:03:28 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-18 20:03:28 +0000
commit66b52a67bc86a0de209e9b7f97a28572ba574654 (patch)
treece8429c6500652b1ba66ccbc33e120c1a6bdfd2e /lib
parentfac902681b487a2c62e1bea52a6e202da2795ee6 (diff)
downloaddrakx-net-66b52a67bc86a0de209e9b7f97a28572ba574654.tar
drakx-net-66b52a67bc86a0de209e9b7f97a28572ba574654.tar.gz
drakx-net-66b52a67bc86a0de209e9b7f97a28572ba574654.tar.bz2
drakx-net-66b52a67bc86a0de209e9b7f97a28572ba574654.tar.xz
drakx-net-66b52a67bc86a0de209e9b7f97a28572ba574654.zip
extract expanded variable
Diffstat (limited to 'lib')
-rwxr-xr-xlib/network/netcenter.pm3
1 files changed, 2 insertions, 1 deletions
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 => [