summaryrefslogtreecommitdiffstats
path: root/gurpmi2
diff options
context:
space:
mode:
Diffstat (limited to 'gurpmi2')
-rwxr-xr-xgurpmi27
1 files changed, 7 insertions, 0 deletions
diff --git a/gurpmi2 b/gurpmi2
index f3f9c235..9b3a62a0 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -299,6 +299,13 @@ sub do_install_3 () {
}
sync();
},
+ ask_yes_or_no => sub {
+ my ($title, $msg) = @_;
+ my $w = Gtk2::MessageDialog->new($mainw, [qw(modal destroy-with-parent)], 'warning', 'yes-no', $msg);
+ my $response = $w->run;
+ $w->destroy;
+ return $response eq 'ok';
+ },
completed => sub {
$urpmi_lock->unlock;
$rpm_lock->unlock;