diff options
author | Sascha Silbe <silbe@activitycentral.com> | 2011-02-25 15:36:00 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha-pgp@silbe.org> | 2011-02-25 15:42:07 (GMT) |
commit | dafc30f1b63186c5358ca36e7fbcb04227916e35 (patch) | |
tree | fdc5f3f2cfad6c4cae22902aff3a8788e764c171 | |
parent | fd09d1827b2a3759b7c5f4bee54fe7a696601bec (diff) |
add minimal instructions on main view
-rw-r--r-- | restore.py | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -544,6 +544,7 @@ class RestoreActivity(activity.Activity): """Set path to bundle to restore.""" self._path = file_path self._no_bundle_warning.hide() + self._instruction.show() self._restore_button.set_sensitive(True) def write_file(self, file_path): @@ -569,9 +570,20 @@ class RestoreActivity(activity.Activity): self._no_bundle_warning = gtk.Label(warning.encode('utf-8')) self._no_bundle_warning.set_line_wrap(True) self._no_bundle_warning.connect('size-allocate', label_size_allocate) + self._no_bundle_warning.show() vbox.pack_start(self._no_bundle_warning, True) + + instruction = _('Press the button to restore entries from the' + ' bundle to the Journal. Only entries in the bundle' + ' that are not in the Journal or are newer than what' + ' is in the Journal will be restored.') + self._instruction = gtk.Label(instruction.encode('utf-8')) + self._instruction.set_line_wrap(True) + self._instruction.connect('size-allocate', label_size_allocate) + self._instruction.hide() + vbox.pack_start(self._instruction, True) self.set_canvas(vbox) - vbox.show_all() + vbox.show() def _setup_toolbar(self): if pre_086_toolbars: |