[gnome-power-manager] Allow 'gnome-power-statistics --device wakeups' to focus on the correct entry
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-power-manager] Allow 'gnome-power-statistics --device wakeups' to focus on the correct entry
- Date: Thu, 28 Oct 2010 10:09:13 +0000 (UTC)
commit dc801f196596d75d7dfb789262d91d917c2ca304
Author: Richard Hughes <richard hughsie com>
Date: Thu Oct 28 12:08:33 2010 +0100
Allow 'gnome-power-statistics --device wakeups' to focus on the correct entry
src/gpm-statistics.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gpm-statistics.c b/src/gpm-statistics.c
index 3e5dbad..fd0e9eb 100644
--- a/src/gpm-statistics.c
+++ b/src/gpm-statistics.c
@@ -1461,8 +1461,10 @@ gpm_stats_highlight_device (const gchar *object_path)
GtkWidget *widget;
/* check valid */
- if (!g_str_has_prefix (object_path, "/"))
+ if (!g_str_has_prefix (object_path, "/") &&
+ g_strcmp0 (object_path, "wakeups") != 0) {
goto out;
+ }
/* we have to reuse the treeview data as it may be sorted */
ret = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (list_store_devices), &iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]