tracker r1593 - in branches/indexer-split: . src/libtracker-db



Author: carlosg
Date: Fri Jun  6 09:37:00 2008
New Revision: 1593
URL: http://svn.gnome.org/viewvc/tracker?rev=1593&view=rev

Log:
2008-06-06  Carlos Garnacho  <carlos imendio com>

        * src/libtracker-db/tracker-db-manager.c (load_metadata_file): Try to
        find enum value based on the nick, not the name.
        (db_manager_row_to_field_def): Set data type when creating
        TrackerField objects.


Modified:
   branches/indexer-split/ChangeLog
   branches/indexer-split/src/libtracker-db/tracker-db-manager.c

Modified: branches/indexer-split/src/libtracker-db/tracker-db-manager.c
==============================================================================
--- branches/indexer-split/src/libtracker-db/tracker-db-manager.c	(original)
+++ branches/indexer-split/src/libtracker-db/tracker-db-manager.c	Fri Jun  6 09:37:00 2008
@@ -244,7 +244,7 @@
 			} else if (strcasecmp (keys[j], "DataType") == 0) {
 				GEnumValue *enum_value;
 
-				enum_value = g_enum_get_value_by_name (g_type_class_peek (TRACKER_TYPE_FIELD_TYPE), new_value);
+				enum_value = g_enum_get_value_by_nick (g_type_class_peek (TRACKER_TYPE_FIELD_TYPE), new_value);
 
 				if (enum_value) {
 					tracker_db_interface_execute_query (iface, NULL,
@@ -535,6 +535,7 @@
 
 	tracker_field_set_id (field_def, tracker_int_to_string (id));
 	tracker_field_set_name (field_def, name);
+	tracker_field_set_data_type (field_def, field_type);
 	tracker_field_set_field_name (field_def, field_name);
 	tracker_field_set_weight (field_def, weight);
 	tracker_field_set_embedded (field_def, embedded);



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