[gnome-control-center/wip/feborges/new-users-panel: 11/18] user-accounts: Drop date from "Account Activity" entries
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/feborges/new-users-panel: 11/18] user-accounts: Drop date from "Account Activity" entries
- Date: Mon, 11 Jul 2016 12:53:17 +0000 (UTC)
commit 6bbff5b3ac09f272b1a7964a5e4154c083f57ad6
Author: Felipe Borges <felipeborges gnome org>
Date: Tue Jun 21 16:12:30 2016 +0200
user-accounts: Drop date from "Account Activity" entries
Since we are currently grouping the Account Activity by day,
there's no point of showing the date in the activity entries.
https://bugzilla.gnome.org/show_bug.cgi?id=767065
panels/user-accounts/um-history-dialog.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/panels/user-accounts/um-history-dialog.c b/panels/user-accounts/um-history-dialog.c
index b442d5d..a962631 100644
--- a/panels/user-accounts/um-history-dialog.c
+++ b/panels/user-accounts/um-history-dialog.c
@@ -157,16 +157,14 @@ set_sensitivity (UmHistoryDialog *um)
static void
add_record (GtkWidget *box, GDateTime *datetime, gchar *record_string, gint line)
{
- gchar *date, *time, *str;
+ gchar *time, *str;
GtkWidget *label, *row;
- date = cc_util_get_smart_date (datetime);
/* Translators: This is a time format string in the style of "22:58".
It indicates a login time which follows a date. */
- time = g_date_time_format (datetime, C_("login date-time", "%k:%M"));
- /* Translators: This indicates a login date-time.
- The first %s is a date, and the second %s a time. */
- str = g_strdup_printf(C_("login date-time", "%s, %s"), date, time);
+ time = g_date_time_format (datetime, C_("login date-time", "%X"));
+ /* Translators: This indicates a login time. %s is a time. */
+ str = g_strdup_printf(C_("login date-time", "%s"), time);
row = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_box_set_homogeneous (GTK_BOX (row), TRUE);
@@ -180,7 +178,6 @@ add_record (GtkWidget *box, GDateTime *datetime, gchar *record_string, gint line
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_box_pack_start (GTK_BOX (row), label, TRUE, TRUE, 0);
g_free (str);
- g_free (date);
g_free (time);
g_date_time_unref (datetime);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]