[Aptitude-devel] [PATCH 2 of 2] Hide the main progressbar when the job is complete. This way the GUI gets

Obey Arthur Liu arthur at milliways.fr
Fri Dec 26 13:13:56 UTC 2008


Luca Bruno a écrit :
> # 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();
>        }
>    }
>  }

Thank you for the patch.

It's true that the bottom part of the interface is a little Christmas
tree-like when an upgrade is going  :)

Arthur

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/aptitude-devel/attachments/20081226/1e3659e9/attachment.pgp 


More information about the Aptitude-devel mailing list