Skip to content

Commit

Permalink
Fixed: shrink left side panel
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuLang committed Jul 1, 2015
1 parent 6d6e466 commit 19d91f5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bcloud/App.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,11 @@ def on_app_startup(self, app):
nav_window.add(nav_treeview)

self.progressbar = Gtk.ProgressBar()
self.progressbar.set_show_text(True)
self.progressbar.set_text(_('Unknown'))
left_box.pack_end(self.progressbar, False, False, 0)

self.capicity_label = Gtk.Label(_('Unknown'))
left_box.pack_end(self.capicity_label, False, False, 0)

self.img_avatar = Gtk.Image()
self.img_avatar.props.halign = Gtk.Align.CENTER
left_box.pack_end(self.img_avatar, False, False, 5)
Expand Down Expand Up @@ -300,7 +301,7 @@ def update_quota(self, quota_info, error=None):
total = quota_info['total']
used_size = util.get_human_size(used)[0]
total_size = util.get_human_size(total)[0]
self.progressbar.set_text(used_size + ' / ' + total_size)
self.capicity_label.set_text('{0} / {1}'.format(used_size, total_size))
self.progressbar.set_fraction(used / total)

def update_avatar(self):
Expand Down

0 comments on commit 19d91f5

Please sign in to comment.