aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-06 12:12:51 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-06 12:12:51 +0000
commit049958d70c7b6b5a41849b63560c04d30914b741 (patch)
treef180a0c931b1f20e0daac9c77a203baab25bcf4e
parentbfb219be14b98b9edd984b70f1dcaf7d1b37a396 (diff)
downloadrpmdrake-049958d70c7b6b5a41849b63560c04d30914b741.tar
rpmdrake-049958d70c7b6b5a41849b63560c04d30914b741.tar.gz
rpmdrake-049958d70c7b6b5a41849b63560c04d30914b741.tar.bz2
rpmdrake-049958d70c7b6b5a41849b63560c04d30914b741.tar.xz
rpmdrake-049958d70c7b6b5a41849b63560c04d30914b741.zip
bug #7472-alike progressbar force width fix
-rw-r--r--rpmdrake.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 0e5c365b..c7487df0 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -179,7 +179,7 @@ sub wait_msg {
my ($msg, %options) = @_;
my $mainw = ugtk2->new('rpmdrake', grab => 1, if_(exists $options{transient}, transient => $options{transient}));
my $label = ref($msg) =~ /^Gtk/ ? $msg : Gtk2::Label->new($msg);
- gtkadd($mainw->{window}, gtkpack(gtkadd(create_vbox(), $label, if_(exists $options{widgets}, @{$options{widgets}}))));
+ gtkadd($mainw->{window}, gtkpack__(gtkadd(Gtk2::VBox->new(0, 5), $label, if_(exists $options{widgets}, @{$options{widgets}}))));
$label->signal_connect(expose_event => sub { $mainw->{displayed} = 1; 0 });
$mainw->{rwindow}->set_position('center_always');
$mainw->sync until $mainw->{displayed};
@@ -414,7 +414,7 @@ sub show_urpm_progress {
sub update_sources {
my ($urpm, %options) = @_;
my $w = wait_msg(my $label = Gtk2::Label->new(N("Please wait, updating media...")),
- widgets => [ my $pb = gtkset_size_request(Gtk2::ProgressBar->new, 400, 0) ]);
+ widgets => [ my $pb = gtkset_size_request(Gtk2::ProgressBar->new, 300, -1) ]);
$urpm->update_media(%options, callback => sub { show_urpm_progress($label, $pb, @_) });
remove_wait_msg($w);
}