diff options
-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: |