diff options
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | gurpmi2 | 7 |
2 files changed, 8 insertions, 0 deletions
@@ -1,5 +1,6 @@ - gurpmi o better handle closing dialogs + o fix not asking questions on error Version 6.2 - 7 August 2008, Thierry Vignaud @@ -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; |