diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-09-26 17:19:27 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-09-26 17:19:27 +0000 |
commit | 4053af3793869a6834330558b47e89d98e9d08df (patch) | |
tree | 0bbec1b333b33cc79fe1de805c9d87105e2073fa /MandrivaUpdate | |
parent | 295c5dc050e809c1b2fd7fc62181efbec15649cd (diff) | |
download | rpmdrake-4053af3793869a6834330558b47e89d98e9d08df.tar rpmdrake-4053af3793869a6834330558b47e89d98e9d08df.tar.gz rpmdrake-4053af3793869a6834330558b47e89d98e9d08df.tar.bz2 rpmdrake-4053af3793869a6834330558b47e89d98e9d08df.tar.xz rpmdrake-4053af3793869a6834330558b47e89d98e9d08df.zip |
factorize a call for readability
Diffstat (limited to 'MandrivaUpdate')
-rwxr-xr-x | MandrivaUpdate | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/MandrivaUpdate b/MandrivaUpdate index 4cb1b64d..32849a69 100755 --- a/MandrivaUpdate +++ b/MandrivaUpdate @@ -182,8 +182,9 @@ sub run_treeview_dialog { $statusbar = Gtk2::Statusbar->new; $list->set_rules_hint(1); - $list->get_column(0)->set_fixed_width(24); - $list->get_column(0)->set_sizing('fixed'); + my $bool_col = $list->get_column(0); + $bool_col->set_fixed_width(24); + $bool_col->set_sizing('fixed'); # -1 because actual widget count differs from TreeModel one due to the hidden column: foreach (@pkg_columns{qw(short_name version arch)}) { @@ -215,7 +216,7 @@ sub run_treeview_dialog { refresh_packages_list($list, $info, $update_button); - my $cell = ($list->get_column(0)->get_cell_renderers)[0]; + my $cell = ($bool_col->get_cell_renderers)[0]; $cell->signal_connect(toggled => sub { my ($cell, $text_path) = @_; my ($val, $name) = @{$list->{data}[$text_path]}; |