Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <silbe@activitycentral.com>2011-02-25 15:38:18 (GMT)
committer Sascha Silbe <silbe@activitycentral.com>2011-02-25 16:08:28 (GMT)
commitd884140b89da7213c644fdf887732af76396425a (patch)
treed3d607a3ffb27bd1845c2d000d58d318090bb2e1
parentc00ce7ef8c5013a6627a985bd3293f1f36d5b66e (diff)
add minimal instructions on main view (SL#2539)
-rw-r--r--backup.py12
1 files changed, 11 insertions, 1 deletions
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: