[gnome-software] Show the updated date in the details panel
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Show the updated date in the details panel
- Date: Wed, 9 Oct 2013 16:32:23 +0000 (UTC)
commit 228fca5c982292744842feae2c55368cdd9bc2a2
Author: Richard Hughes <richard hughsie com>
Date: Wed Oct 9 17:09:13 2013 +0100
Show the updated date in the details panel
src/gs-shell-details.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 4709551..1f8fa77 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -368,6 +368,20 @@ gs_shell_details_refresh_all (GsShellDetails *shell_details)
g_free (size);
}
+ /* set the updated date */
+ widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "label_details_updated_value"));
+ if (gs_app_get_install_date (priv->app) == GS_APP_INSTALL_DATE_UNKNOWN) {
+ /* TRANSLATORS: this is where the licence is not known */
+ gtk_label_set_label (GTK_LABEL (widget), _("Never"));
+ } else {
+ GDateTime *dt;
+ dt = g_date_time_new_from_unix_utc (gs_app_get_install_date (priv->app));
+ size = g_date_time_format (dt, "%x");
+ g_date_time_unref (dt);
+ gtk_label_set_label (GTK_LABEL (widget), size);
+ g_free (size);
+ }
+
/* FIXME: This isn't ready yet */
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "application_details_details_title"));
gtk_widget_set_visible (widget, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]