From d884140b89da7213c644fdf887732af76396425a Mon Sep 17 00:00:00 2001 From: Sascha Silbe Date: Fri, 25 Feb 2011 15:38:18 +0000 Subject: add minimal instructions on main view (SL#2539) --- diff --git a/backup.py b/backup.py index f38639b..3d15b62 100644 --- a/backup.py +++ b/backup.py @@ -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: -- cgit v0.9.1