[Aptitude-devel] [PATCH 2 of 2] Hide the main progressbar when the job is complete. This way the GUI gets
Luca Bruno
lethalman88 at gmail.com
Thu Dec 25 17:11:27 UTC 2008
# HG changeset patch
# User Luca Bruno <lethalman88 at gmail.com>
# Date 1230225053 -3600
# Node ID 486aba3bc5ec60157882b59994d62ba6cfc0af73
# Parent 0730a57a88401e1af8d14505c300d61a12519ed0
Hide the main progressbar when the job is complete. This way the GUI gets
cleaner especially when the above progress bars are running.
* src/gtk/progress.cc (guiOpProgress::destroy): hide
main_progressbar
(guiOpProgress::guiOpProgress): show main_progressbar
diff --git a/src/gtk/progress.cc b/src/gtk/progress.cc
--- a/src/gtk/progress.cc
+++ b/src/gtk/progress.cc
@@ -38,6 +38,7 @@
guiOpProgress::guiOpProgress()
: destroyed(false)
{
+ pMainWindow->get_progress_bar()->show();
}
guiOpProgress::~guiOpProgress()
@@ -62,6 +63,7 @@
destroyed = true;
pMainWindow->get_progress_bar()->set_text("");
pMainWindow->get_progress_bar()->set_fraction(0);
+ pMainWindow->get_progress_bar()->hide();
}
}
}
More information about the Aptitude-devel
mailing list