[gnome-control-center/gnome-3-8] user-accounts: Fix empty login history window
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-8] user-accounts: Fix empty login history window
- Date: Wed, 26 Jun 2013 09:13:11 +0000 (UTC)
commit 0925d95ee75e3351366b852999ddcfc3ede22cf9
Author: Ondrej Holy <oholy redhat com>
Date: Wed Jan 23 14:53:08 2013 +0100
user-accounts: Fix empty login history window
https://bugzilla.gnome.org/show_bug.cgi?id=692253
panels/user-accounts/um-history-dialog.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/panels/user-accounts/um-history-dialog.c b/panels/user-accounts/um-history-dialog.c
index 10c6e91..3d062b4 100644
--- a/panels/user-accounts/um-history-dialog.c
+++ b/panels/user-accounts/um-history-dialog.c
@@ -237,8 +237,9 @@ show_week (UmHistoryDialog *um)
break;
}
- /* Display only x-sessions */
- if (g_strrstr (history.type, ":") == NULL) {
+ /* Display only x-session and tty records */
+ if (!g_str_has_prefix (history.type, ":") &&
+ !g_str_has_prefix (history.type, "tty")) {
continue;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]