[tracker] TrackerStatusIcon: use tracker_miner_manager_get_display_name().
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] TrackerStatusIcon: use tracker_miner_manager_get_display_name().
- Date: Wed, 23 Sep 2009 13:19:54 +0000 (UTC)
commit ca29aab75e76334e2dd124fdac0cb73cc4d7d802
Author: Carlos Garnacho <carlos lanedo com>
Date: Wed Sep 23 15:17:55 2009 +0200
TrackerStatusIcon: use tracker_miner_manager_get_display_name().
src/tracker-status-icon/tracker-status-icon.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/tracker-status-icon/tracker-status-icon.c b/src/tracker-status-icon/tracker-status-icon.c
index 5a02ee6..e7aa6e2 100644
--- a/src/tracker-status-icon/tracker-status-icon.c
+++ b/src/tracker-status-icon/tracker-status-icon.c
@@ -460,15 +460,8 @@ miner_menu_entry_add (TrackerStatusIcon *icon,
const gchar *name;
gchar *str;
- name = strrchr (miner, '.');
-
- if (!name) {
- g_warning ("Miner name '%s' doesn't look valid", miner);
- return;
- }
-
- name++;
priv = TRACKER_STATUS_ICON_GET_PRIVATE (icon);
+ name = tracker_miner_manager_get_display_name (priv->manager, miner);
str = g_strdup (miner);
entry = g_new0 (MinerMenuEntry, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]