diff options
author | Philip Van Hoof <philip@codeminded.be> | 2011-02-03 11:13:11 +0100 |
---|---|---|
committer | Philip Van Hoof <philip@codeminded.be> | 2011-02-04 13:49:42 +0100 |
commit | 1ec9d60a68b10ffd0d6a60bc4833a941c30e2d1d (patch) | |
tree | 3dc03481ef40907302a45617e5a82932ee1fa8a1 /src/libtracker-bus | |
parent | 5cfc64304ae05a2274667ea6be3d5e3bd6778e34 (diff) | |
download | tracker-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.vala | 10 |
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; } |