tracker r2066 - in branches/indexer-split: . src/tracker-utils



Author: mr
Date: Wed Aug 13 10:44:21 2008
New Revision: 2066
URL: http://svn.gnome.org/viewvc/tracker?rev=2066&view=rev

Log:
	* src/tracker-utils/tracker-query.c: (get_meta_table_data):
	* src/tracker-utils/tracker-search.c: (get_meta_table_data):
	* src/tracker-utils/tracker-unique.c: (get_meta_table_data): Fix
	for these implementations.


Modified:
   branches/indexer-split/ChangeLog
   branches/indexer-split/src/tracker-utils/tracker-query.c
   branches/indexer-split/src/tracker-utils/tracker-search.c
   branches/indexer-split/src/tracker-utils/tracker-unique.c

Modified: branches/indexer-split/src/tracker-utils/tracker-query.c
==============================================================================
--- branches/indexer-split/src/tracker-utils/tracker-query.c	(original)
+++ branches/indexer-split/src/tracker-utils/tracker-query.c	Wed Aug 13 10:44:21 2008
@@ -81,27 +81,16 @@
 {
 	gchar **meta;
 	gchar **p;
-	gchar  *str;
-	gint    i = 0;
+	gint    i;
 
 	meta = value;
 
 	for (p = meta, i = 0; *p; p++, i++) {
-                switch (i) {
-                case 0:
-			str = g_filename_from_utf8 (*p, -1, NULL, NULL, NULL);
-                        g_print ("  %s:'%s'", _("Path"), str);
-			g_free (str);
-                        break;
-                case 1:
-			g_print (", %s:'%s'", _("Service"), *p);
-                        break;
-                case 2:
-			g_print (", %s:'%s'", _("MIME-type"), *p);
-                        break;
-                default:
-                        break;
-                }
+		if (i == 0) {
+			g_print ("  %s", *p);
+		} else {
+			g_print (", %s", *p);
+		}
 	}
 
 	g_print ("\n");

Modified: branches/indexer-split/src/tracker-utils/tracker-search.c
==============================================================================
--- branches/indexer-split/src/tracker-utils/tracker-search.c	(original)
+++ branches/indexer-split/src/tracker-utils/tracker-search.c	Wed Aug 13 10:44:21 2008
@@ -68,7 +68,7 @@
 	gchar **meta;
 	gchar **p;
 	gchar  *str;
-	gint    i = 0;
+	gint    i;
 
 	meta = value;
 

Modified: branches/indexer-split/src/tracker-utils/tracker-unique.c
==============================================================================
--- branches/indexer-split/src/tracker-utils/tracker-unique.c	(original)
+++ branches/indexer-split/src/tracker-utils/tracker-unique.c	Wed Aug 13 10:44:21 2008
@@ -72,7 +72,7 @@
 {
 	gchar **meta;
         gchar **p;
-	gint    i = 0;
+	gint    i;
 
 	meta = value;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]