[sugar] [PATCH] make width/text of battery palette look nicer

Tomeu Vizoso tomeu at tomeuvizoso.net
Tue May 6 10:25:47 EDT 2008


r+

Thanks!

Tomeu

On 5/2/08, Martin Dengler <martin at martindengler.com> wrote:
> ---
>  src/view/devices/battery.py |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/src/view/devices/battery.py b/src/view/devices/battery.py
> index a97d014..e4d82d3 100644
> --- a/src/view/devices/battery.py
> +++ b/src/view/devices/battery.py
> @@ -84,6 +84,8 @@ class BatteryPalette(Palette):
>
>         self._level = 0
>         self._progress_bar = gtk.ProgressBar()
> +        self._progress_bar.set_size_request(
> +            style.zoom(style.GRID_CELL_SIZE * 4), -1)
>         self._progress_bar.show()
>         self._status_label = gtk.Label()
>         self._status_label.show()
> @@ -120,7 +122,6 @@ class BatteryPalette(Palette):
>                                        'min': remaining_minpart})
>         else:
>             secondary_text = _('Charged')
> -            status_text = ''
>
>         self.props.secondary_text = secondary_text
>         self._status_label.set_text(status_text)
> --
> 1.5.4.1


More information about the Sugar mailing list