summaryrefslogtreecommitdiff
path: root/src/libtracker-bus
diff options
context:
space:
mode:
authorPhilip Van Hoof <philip@codeminded.be>2011-02-03 11:13:11 +0100
committerPhilip Van Hoof <philip@codeminded.be>2011-02-04 13:49:42 +0100
commit1ec9d60a68b10ffd0d6a60bc4833a941c30e2d1d (patch)
tree3dc03481ef40907302a45617e5a82932ee1fa8a1 /src/libtracker-bus
parent5cfc64304ae05a2274667ea6be3d5e3bd6778e34 (diff)
downloadtracker-1ec9d60a68b10ffd0d6a60bc4833a941c30e2d1d.tar.gz
libtracker-bus, -direct, -sparql: Error handling, get_direct
This makes the connection.get_direct and connection.get APIs work right. Fixes NB#222182.
Diffstat (limited to 'src/libtracker-bus')
-rw-r--r--src/libtracker-bus/tracker-bus.vala10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/libtracker-bus/tracker-bus.vala b/src/libtracker-bus/tracker-bus.vala
index e17c9fc29..b0b313714 100644
--- a/src/libtracker-bus/tracker-bus.vala
+++ b/src/libtracker-bus/tracker-bus.vala
@@ -347,11 +347,7 @@ public class Tracker.Bus.Connection : Tracker.Sparql.Connection {
}
}
-public Tracker.Sparql.Connection? module_init () {
- try {
- Tracker.Sparql.Connection plugin = new Tracker.Bus.Connection ();
- return plugin;
- } catch {
- return null;
- }
+public Tracker.Sparql.Connection? module_init () throws GLib.Error {
+ Tracker.Sparql.Connection plugin = new Tracker.Bus.Connection ();
+ return plugin;
}