aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel/Rpmdragora/gurpm.pm
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-12-12 18:56:19 +0100
committerAngelo Naselli <anaselli@linux.it>2014-12-12 18:56:19 +0100
commit2e703b9b4a0ca010f997f85a5abe9df9263b1f60 (patch)
tree50961ba562b99fa916821a816820de97af4a02c1 /lib/AdminPanel/Rpmdragora/gurpm.pm
parentaaef9bf5e0be947b6412344542b8210eb8561374 (diff)
downloadmanatools-2e703b9b4a0ca010f997f85a5abe9df9263b1f60.tar
manatools-2e703b9b4a0ca010f997f85a5abe9df9263b1f60.tar.gz
manatools-2e703b9b4a0ca010f997f85a5abe9df9263b1f60.tar.bz2
manatools-2e703b9b4a0ca010f997f85a5abe9df9263b1f60.tar.xz
manatools-2e703b9b4a0ca010f997f85a5abe9df9263b1f60.zip
fixed gurpm progress bar
Diffstat (limited to 'lib/AdminPanel/Rpmdragora/gurpm.pm')
-rw-r--r--lib/AdminPanel/Rpmdragora/gurpm.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/AdminPanel/Rpmdragora/gurpm.pm b/lib/AdminPanel/Rpmdragora/gurpm.pm
index b70c3b19..9c0ea43a 100644
--- a/lib/AdminPanel/Rpmdragora/gurpm.pm
+++ b/lib/AdminPanel/Rpmdragora/gurpm.pm
@@ -45,10 +45,14 @@ sub new {
#my $mainw = bless(ugtk2->new($title, %options, default_width => 600, width => 600), $self);
$self->{factory} = yui::YUI::widgetFactory;
$self->{mainw} = $self->{factory}->createPopupDialog();
+
+ $self->{mainw}->startMultipleChanges();
+
#$::main_window = $self->{mainw};
$self->{vbox} = $self->{factory}->createVBox($self->{mainw});
#OLD $mainw->{label} = gtknew('Label', text => $initializing, alignment => [ 0.5, 0 ]);
$self->{label} = $self->{factory}->createLabel($self->{vbox}, $initializing);
+ $self->{label}->setStretchable( $yui::YD_HORIZ, 1 );
# size label's heigh to 2 lines in order to prevent dummy vertical resizing:
#my $context = $mainw->{label}->get_layout->get_context;
#my $metrics = $context->get_metrics($mainw->{label}->style->font_desc, $context->get_language);
@@ -66,6 +70,7 @@ sub new {
#$mainw->SUPER::sync;
$self->{mainw}->pollEvent();
$self->flush();
+
$self;
}
@@ -73,11 +78,16 @@ sub flush {
my ($self) = @_;
$self->{mainw}->recalcLayout();
$self->{mainw}->doneMultipleChanges();
+
+ $self->{mainw}->waitForEvent(10);
+
$self->{mainw}->pollEvent();
+ yui::YUI::app()->redrawScreen();
}
sub label {
my ($self, $label) = @_;
+
$self->{mainw}->startMultipleChanges();
$self->{label}->setValue($label) if $label;
#select(undef, undef, undef, 0.1); #- hackish :-(