[tracker] tracker-preferences: Fixed compilation warnings
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-preferences: Fixed compilation warnings
- Date: Tue, 29 Jun 2010 09:10:20 +0000 (UTC)
commit e394183eff3ed638c941aa209df5f619198a66df
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]