diff options
author | Sascha Silbe <silbe@activitycentral.com> | 2011-02-25 15:38:18 (GMT) |
---|---|---|
committer | Sascha Silbe <silbe@activitycentral.com> | 2011-02-25 16:08:28 (GMT) |
commit | d884140b89da7213c644fdf887732af76396425a (patch) | |
tree | d3d607a3ffb27bd1845c2d000d58d318090bb2e1 | |
parent | c00ce7ef8c5013a6627a985bd3293f1f36d5b66e (diff) |
add minimal instructions on main view (SL#2539)
-rw-r--r-- | backup.py | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -486,9 +486,19 @@ class BackupActivity(activity.Activity): self._setup_main_view() def _setup_main_view(self): + def label_size_allocate(widget, rect): + widget.set_size_request(rect.width, -1) + vbox = gtk.VBox() + instruction = _('Please plug in the storage device you want to back' + ' up to, select it in the tool bar and press the' + ' button to start the backup.') + instruction_label = gtk.Label(instruction.encode('utf-8')) + instruction_label.set_line_wrap(True) + instruction_label.connect('size-allocate', label_size_allocate) + vbox.pack_start(instruction_label, True) self.set_canvas(vbox) - vbox.show() + vbox.show_all() def _setup_toolbar(self): if pre_086_toolbars: |