Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/extensions/cpsection/aboutcomputer/view.py
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/cpsection/aboutcomputer/view.py')
-rw-r--r--extensions/cpsection/aboutcomputer/view.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/extensions/cpsection/aboutcomputer/view.py b/extensions/cpsection/aboutcomputer/view.py
index d719372..dd2f200 100644
--- a/extensions/cpsection/aboutcomputer/view.py
+++ b/extensions/cpsection/aboutcomputer/view.py
@@ -171,6 +171,28 @@ class AboutComputer(SectionView):
box_software.pack_start(box_wireless_fw, expand=False)
box_wireless_fw.show()
+ # Try to fetch "Last Updated On" field from the model.
+ # If the field is not empty, display it.
+ # At present, the field is returned empty, only if "root-access"
+ # is disabled on the target-machine.
+ last_updated_on_field = self._model.get_last_updated_on_field()
+ if last_updated_on_field:
+ box_last_updated_on = gtk.HBox(spacing=style.DEFAULT_SPACING)
+ label_last_updated_on = gtk.Label(_('Last Updated On:'))
+ label_last_updated_on.set_alignment(1, 0)
+ label_last_updated_on.modify_fg(gtk.STATE_NORMAL,
+ style.COLOR_SELECTION_GREY.get_gdk_color())
+ box_last_updated_on.pack_start(label_last_updated_on, expand=False)
+ self._group.add_widget(label_last_updated_on)
+ label_last_updated_on.show()
+ label_last_updated_on_field = \
+ gtk.Label(last_updated_on_field)
+ label_last_updated_on_field.set_alignment(0, 0)
+ box_last_updated_on.pack_start(label_last_updated_on_field, expand=False)
+ label_last_updated_on_field.show()
+ box_software.pack_start(box_last_updated_on, expand=False)
+ box_last_updated_on.show()
+
self._vbox.pack_start(box_software, expand=False)
box_software.show()