summaryrefslogtreecommitdiffstats
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
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)
-rw-r--r--gurpm.pm4
-rw-r--r--urpmi.spec2
2 files changed, 4 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));
diff --git a/urpmi.spec b/urpmi.spec
index d2266444..508e0608 100644
--- a/urpmi.spec
+++ b/urpmi.spec
@@ -243,6 +243,8 @@ $urpm->update_media(nolock => 1, nopubkey => 1);
%changelog
* Sun Feb 22 2004 François Pons <fpons@garrigue.homelinux.org> 4.4.5-8mdk
- fix bug 8110.
+- gurpm.pm: allow to pass options to ugtk2 object (so that we can set
+ transient_for option, fixes #8146) (gc)
* Fri Feb 20 2004 David Baudens <baudens@mandrakesoft.com> 4.4.5-7mdk
- Revert menu entry from needs="x11" to needs="gnome" and needs="kde"