[tracker/tracker-0.8] tracker-preferences: Fixed compilation warnings
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.8] tracker-preferences: Fixed compilation warnings
- Date: Thu, 1 Jul 2010 16:39:19 +0000 (UTC)
commit 92e019893d10762660a5eba9257f1bb43f2c0f29
Author: Philip Van Hoof <philip codeminded be>
Date: Tue Jun 29 11:04:58 2010 +0200
tracker-preferences: Fixed compilation warnings
src/tracker-preferences/tracker-preferences.vala | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/src/tracker-preferences/tracker-preferences.vala b/src/tracker-preferences/tracker-preferences.vala
index 31ea602..511740b 100644
--- a/src/tracker-preferences/tracker-preferences.vala
+++ b/src/tracker-preferences/tracker-preferences.vala
@@ -317,13 +317,17 @@ fill_in_model (ListStore model, SList<string> list)
{
int position = 0;
foreach (string str in list) {
- model.insert_with_values (null,
- position++,
- 0,
- Filename.to_utf8 (str,
- -1,
- null,
- null));
+ try {
+ model.insert_with_values (null,
+ position++,
+ 0,
+ Filename.to_utf8 (str,
+ -1,
+ null,
+ null));
+ } catch (GLib.ConvertError e) {
+ print ("%s", e.message);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]