[tracker] Putting setting the icon in rigth order
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Putting setting the icon in rigth order
- Date: Tue, 1 Sep 2009 09:50:18 +0000 (UTC)
commit e37b50dfdc6d4bac6fe2238dedc81c6dbed1dd26
Author: Philip Van Hoof <philip codeminded be>
Date: Tue Sep 1 11:49:23 2009 +0200
Putting setting the icon in rigth order
src/tracker-miner-fs/modules/applications.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/src/tracker-miner-fs/modules/applications.c b/src/tracker-miner-fs/modules/applications.c
index d2ee8c5..7834e5a 100644
--- a/src/tracker-miner-fs/modules/applications.c
+++ b/src/tracker-miner-fs/modules/applications.c
@@ -185,6 +185,16 @@ tracker_application_file_get_metadata (TrackerModuleFile *file, gchar **mime_typ
sparql = tracker_sparql_builder_new_update ();
tracker_sparql_builder_insert_open (sparql);
+ uri = canonical_uri;
+
+ tracker_sparql_builder_subject_iri (sparql, uri);
+
+ tracker_sparql_builder_predicate (sparql, "a");
+ tracker_sparql_builder_object (sparql, "nfo:SoftwareCategory");
+
+ tracker_sparql_builder_predicate (sparql, "nie:title");
+ tracker_sparql_builder_object_string (sparql, name);
+
if (icon) {
gchar *icon_uri = g_strdup_printf (THEME_ICON_URN_PREFIX "%s", icon);
@@ -192,7 +202,7 @@ tracker_application_file_get_metadata (TrackerModuleFile *file, gchar **mime_typ
tracker_sparql_builder_predicate (sparql, "a");
tracker_sparql_builder_object (sparql, "nfo:Image");
- tracker_sparql_builder_subject_iri (sparql, canonical_uri);
+ tracker_sparql_builder_subject_iri (sparql, uri);
tracker_sparql_builder_predicate (sparql, "nfo:softwareCategoryIcon");
tracker_sparql_builder_object_iri (sparql, icon_uri);
@@ -200,16 +210,6 @@ tracker_application_file_get_metadata (TrackerModuleFile *file, gchar **mime_typ
g_free (icon);
}
- uri = canonical_uri;
-
- tracker_sparql_builder_subject_iri (sparql, uri);
-
- tracker_sparql_builder_predicate (sparql, "a");
- tracker_sparql_builder_object (sparql, "nfo:SoftwareCategory");
-
- tracker_sparql_builder_predicate (sparql, "nie:title");
- tracker_sparql_builder_object_string (sparql, name);
-
} else if (name && g_ascii_strcasecmp (type, "Application") == 0) {
uri = tracker_module_file_get_uri (file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]