[tracker/needle: 45/53] tracker-needle: Fixed recent libtracker-sparql API changes
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/needle: 45/53] tracker-needle: Fixed recent libtracker-sparql API changes
- Date: Fri, 12 Nov 2010 23:49:37 +0000 (UTC)
commit a0591be7f706774be1684ecaeeeadd83d4a25578
Author: Martyn Russell <martyn lanedo com>
Date: Sun Oct 24 12:23:13 2010 +0100
tracker-needle: Fixed recent libtracker-sparql API changes
src/tracker-needle/tracker-query.vala | 6 ++++--
src/tracker-needle/tracker-taglist.vala | 7 +++++--
2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/src/tracker-needle/tracker-query.vala b/src/tracker-needle/tracker-query.vala
index 6bc3419..59a2fac 100644
--- a/src/tracker-needle/tracker-query.vala
+++ b/src/tracker-needle/tracker-query.vala
@@ -43,8 +43,10 @@ public class Tracker.Query {
public Query () {
try {
connection = Sparql.Connection.get ();
- } catch (Sparql.Error e) {
- warning ("Could not get Sparql connection: %s", e.message);
+ } catch (Sparql.Error ea) {
+ warning ("Could not get Sparql connection: %s", ea.message);
+ } catch (GLib.IOError eb) {
+ warning ("Could not get Sparql connection: %s", eb.message);
}
}
diff --git a/src/tracker-needle/tracker-taglist.vala b/src/tracker-needle/tracker-taglist.vala
index a780359..73e735b 100644
--- a/src/tracker-needle/tracker-taglist.vala
+++ b/src/tracker-needle/tracker-taglist.vala
@@ -77,8 +77,11 @@ public class Tracker.TagList : ScrolledWindow {
// Add data
try {
connection = Sparql.Connection.get ();
- } catch (Sparql.Error e) {
- warning ("Could not get Sparql connection: %s", e.message);
+ } catch (Sparql.Error ea) {
+ warning ("Could not get Sparql connection: %s", ea.message);
+ return;
+ } catch (GLib.IOError eb) {
+ warning ("Could not get Sparql connection: %s", eb.message);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]