tracker r2673 - in trunk: . src/tracker-utils
- From: ifrade svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2673 - in trunk: . src/tracker-utils
- Date: Mon, 8 Dec 2008 16:12:46 +0000 (UTC)
Author: ifrade
Date: Mon Dec 8 16:12:46 2008
New Revision: 2673
URL: http://svn.gnome.org/viewvc/tracker?rev=2673&view=rev
Log:
Inform to the user if we are defaulting to Other service type
Modified:
trunk/ChangeLog
trunk/src/tracker-utils/tracker-files.c
Modified: trunk/src/tracker-utils/tracker-files.c
==============================================================================
--- trunk/src/tracker-utils/tracker-files.c (original)
+++ trunk/src/tracker-utils/tracker-files.c Mon Dec 8 16:12:46 2008
@@ -99,9 +99,20 @@
if (service) {
gchar **array;
gchar **p_strarray;
+ gchar *suggested_name;
type = tracker_service_name_to_type (service);
+ /* Get the name of the type to detect if it is defaulting to OTHER
+ * Ugly, but there is no other solution with current libtracker API
+ */
+ suggested_name = tracker_type_to_service_name (type);
+
+ if (g_ascii_strcasecmp (suggested_name, service)) {
+ g_print (_("Defaulting to '%s' service\n"),
+ suggested_name);
+ }
+
array = tracker_files_get_by_service_type (client,
time (NULL),
type,
@@ -112,7 +123,7 @@
if (error) {
g_printerr ("%s:'%s', %s\n",
_("Could not get files by service type"),
- service,
+ suggested_name,
error->message);
g_error_free (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]