summaryrefslogtreecommitdiffstats
path: root/gurpm.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-23 14:54:49 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-23 14:54:49 +0000
commit0820ef18b864a05c2d115e2b2495f1fa5ed53b10 (patch)
tree61eb5164a414988131e5239cd9bc75777b62f234 /gurpm.pm
parent10e439ba8e52ee7584ff6fb6746dfe96c26caab5 (diff)
downloadurpmi-0820ef18b864a05c2d115e2b2495f1fa5ed53b10.tar
urpmi-0820ef18b864a05c2d115e2b2495f1fa5ed53b10.tar.gz
urpmi-0820ef18b864a05c2d115e2b2495f1fa5ed53b10.tar.bz2
urpmi-0820ef18b864a05c2d115e2b2495f1fa5ed53b10.tar.xz
urpmi-0820ef18b864a05c2d115e2b2495f1fa5ed53b10.zip
allow to pass options to ugtk2 object (so that we can set
transient_for option, fixes #8146)
Diffstat (limited to 'gurpm.pm')
-rw-r--r--gurpm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/gurpm.pm b/gurpm.pm
index 11e07981..6e96b009 100644
--- a/gurpm.pm
+++ b/gurpm.pm
@@ -27,8 +27,8 @@ $::isStandalone = 1;
our ($mainw, $label, $progressbar, $vbox, $cancel, $hbox_cancel);
sub init {
- my ($title, $initializing, $cancel_msg, $cancel_cb) = @_;
- $mainw = ugtk2->new($title);
+ my ($title, $initializing, %options) = @_;
+ $mainw = ugtk2->new($title, %options);
$label = Gtk2::Label->new($initializing);
$progressbar = gtkset_size_request(Gtk2::ProgressBar->new, 300, -1);
gtkadd($mainw->{window}, gtkpack__($vbox = Gtk2::VBox->new(0, 5), $label, $progressbar));