From 0820ef18b864a05c2d115e2b2495f1fa5ed53b10 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 23 Feb 2004 14:54:49 +0000 Subject: allow to pass options to ugtk2 object (so that we can set transient_for option, fixes #8146) --- gurpm.pm | 4 ++-- urpmi.spec | 2 ++ 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 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 4.4.5-7mdk - Revert menu entry from needs="x11" to needs="gnome" and needs="kde" -- cgit v1.2.1