summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--gurpm/RPMProgressDialog.pm9
2 files changed, 7 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 6dffed76..eb9ae611 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- library:
+ o enable rpmdrake to not use modal dialogs (mga#9646)
o fix leaving read locks on rpmdb (mga#9248)
Version 7.24 - 18 April 2013, by Thierry Vignaud
diff --git a/gurpm/RPMProgressDialog.pm b/gurpm/RPMProgressDialog.pm
index d9fd8cc7..f4748f5a 100644
--- a/gurpm/RPMProgressDialog.pm
+++ b/gurpm/RPMProgressDialog.pm
@@ -68,7 +68,7 @@ Arguments are an urpm object and a quit routine reference.
sub new {
- my ($self, $global_urpm, $o_quit) = @_;
+ my ($self, $global_urpm, $o_quit, $o_no_modal) = @_;
# my $w = ugtk2->new($title, %options, default_width => 600, width => 600);
my $w = $mainw = bless(Gtk2::Window->new('toplevel'), $self);
@@ -79,8 +79,11 @@ sub new {
$w->signal_connect(destroy => $o_quit) if $o_quit;
$w->set_position('center');
$w->set_default_size($progressbar_size, 60);
- $w->set_type_hint('dialog'); # for matchbox window manager during install
- $w->set_modal(1); # for matchbox window manager during install
+ # for matchbox window manager during install:
+ if (!$o_no_modal) {
+ $w->set_type_hint('dialog');
+ $w->set_modal(1);
+ }
$w->{mainbox} = Gtk2::VBox->new(0, 5);
$w->add($w->{mainbox});
$urpm = $global_urpm;