xmpedit

GTK+ editor for XMP metadata embedded in images
git clone https://code.djc.id.au/git/xmpedit/
commit 8c4c9f4d24c3db7f4c6fe40ee15dffe39da6b254
parent 73cacecbfe295f0dced1d8d0a544d0aa9a203f3e
Author: Dan Callaghan <djc@djc.id.au>
Date:   Mon,  6 Sep 2010 20:23:06 +1000

thanks gcc

Diffstat:
Msrc/ImageMetadata.vala | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/ImageMetadata.vala b/src/ImageMetadata.vala
@@ -223,7 +223,7 @@ public class ImageMetadata : Object, Gtk.TreeModel {
     /****** TREEMODEL IMPLEMENTATION STUFF **********/
     
     public Type get_column_type(int column) {
-        return_if_fail(column == 0);
+        return_val_if_fail(column == 0, 0);
         return typeof(PropertyEditor);
     }
     
@@ -244,7 +244,7 @@ public class ImageMetadata : Object, Gtk.TreeModel {
     }
 
     public Gtk.TreePath get_path(Gtk.TreeIter iter) {
-        return_if_fail(iter.stamp == stamp);
+        return_val_if_fail(iter.stamp == stamp, null);
         var pe = (PropertyEditor) iter.user_data;
         return new Gtk.TreePath.from_indices(properties.index_of(pe));
     }
@@ -275,7 +275,7 @@ public class ImageMetadata : Object, Gtk.TreeModel {
     }
     
     public bool iter_next(ref Gtk.TreeIter iter) {
-        return_if_fail(iter.stamp == stamp);
+        return_val_if_fail(iter.stamp == stamp, false);
         var index = properties.index_of((PropertyEditor) iter.user_data);
         if (index < properties.size - 1) {
             iter.user_data = (void*) properties[index + 1];