aboutsummaryrefslogtreecommitdiffstats
path: root/MandrivaUpdate
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-02-28 19:22:07 +0000
committerThierry Vignaud <tv@mandriva.org>2007-02-28 19:22:07 +0000
commitebbb67db0f825f1cf9df7bbd29c1452d92347cdb (patch)
tree1c35d48b29ddbb91df01ea98650b64cd063cd31b /MandrivaUpdate
parent133968f3a5663e79b70eeecf9684cc6fabed32e3 (diff)
downloadrpmdrake-ebbb67db0f825f1cf9df7bbd29c1452d92347cdb.tar
rpmdrake-ebbb67db0f825f1cf9df7bbd29c1452d92347cdb.tar.gz
rpmdrake-ebbb67db0f825f1cf9df7bbd29c1452d92347cdb.tar.bz2
rpmdrake-ebbb67db0f825f1cf9df7bbd29c1452d92347cdb.tar.xz
rpmdrake-ebbb67db0f825f1cf9df7bbd29c1452d92347cdb.zip
handle toggled signal
Diffstat (limited to 'MandrivaUpdate')
-rwxr-xr-xMandrivaUpdate8
1 files changed, 8 insertions, 0 deletions
diff --git a/MandrivaUpdate b/MandrivaUpdate
index b6f7d27c..4c0582e3 100755
--- a/MandrivaUpdate
+++ b/MandrivaUpdate
@@ -136,6 +136,14 @@ gtknew('ScrolledWindow', width => $typical_width*0.9,
@{$list->{data}} = map {
[ $pkgs->{$_}{selected}, join("\n", "<b>$_</b>", translate(rpm_summary($pkgs->{$_}{pkg}->summary))) ]
} sort map { urpm_name($_) } @requested;
+ my $cell = ($list->get_column(0)->get_cell_renderers)[0];
+ $cell->signal_connect (toggled => sub {
+ my ($cell, $text_path) = @_;
+ my ($val, $name) = @{$list->{data}[$text_path]};
+ ($name) = $name =~ m!<b>(.*)</b>!;
+ $pkgs->{$name}{selected} = to_bool($val);
+ $pkgs->{$name}{pkg}->set_flag_required($val);
+ });
$action_button->set_sensitive(0) if $>;
$w->{rwindow}->set_sensitive(1);