[gnome-games] desktop: Handle errors from DesktopTrackerQuery.process_cursor()
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] desktop: Handle errors from DesktopTrackerQuery.process_cursor()
- Date: Sun, 14 Aug 2016 13:21:38 +0000 (UTC)
commit 97bd9c6ec2663be23e062a1702ea8e6586ad1d51
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sat Aug 13 17:12:38 2016 +0200
desktop: Handle errors from DesktopTrackerQuery.process_cursor()
This allows to avoid some compile time warnings.
https://bugzilla.gnome.org/show_bug.cgi?id=769844
plugins/desktop/src/desktop-tracker-query.vala | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/plugins/desktop/src/desktop-tracker-query.vala b/plugins/desktop/src/desktop-tracker-query.vala
index e38473c..ad8fb9e 100644
--- a/plugins/desktop/src/desktop-tracker-query.vala
+++ b/plugins/desktop/src/desktop-tracker-query.vala
@@ -31,6 +31,15 @@ private class Games.DesktopTrackerQuery : Object, TrackerQuery {
public void process_cursor (Tracker.Sparql.Cursor cursor) {
var uri = cursor.get_string (0);
+ try {
+ process_uri (uri);
+ }
+ catch (Error e) {
+ warning (e.message);
+ }
+ }
+
+ public void process_uri (string uri) throws Error {
check_uri (uri);
var file = File.new_for_uri (uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]