diff options
-rw-r--r-- | editor/dconf-model.vala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/editor/dconf-model.vala b/editor/dconf-model.vala index e03f530..0931c32 100644 --- a/editor/dconf-model.vala +++ b/editor/dconf-model.vala @@ -349,7 +349,11 @@ public class KeyModel: GLib.Object, Gtk.TreeModel return iter_nth_child(out iter, null, path.get_indices()[0]); } +#if VALA_0_14 + public Gtk.TreePath? get_path(Gtk.TreeIter iter) +#else public Gtk.TreePath get_path(Gtk.TreeIter iter) +#endif { var path = new Gtk.TreePath(); path.append_index(get_key(iter).index); @@ -485,7 +489,11 @@ public class EnumModel: GLib.Object, Gtk.TreeModel return iter_nth_child(out iter, null, path.get_indices()[0]); } +#if VALA_0_14 + public Gtk.TreePath? get_path(Gtk.TreeIter iter) +#else public Gtk.TreePath get_path(Gtk.TreeIter iter) +#endif { var path = new Gtk.TreePath(); path.append_index((int)get_enum_value(iter).index); @@ -653,7 +661,11 @@ public class SettingsModel: GLib.Object, Gtk.TreeModel return true; } +#if VALA_0_14 + public Gtk.TreePath? get_path(Gtk.TreeIter iter) +#else public Gtk.TreePath get_path(Gtk.TreeIter iter) +#endif { var path = new Gtk.TreePath(); for (var d = get_directory(iter); d != root; d = d.parent) |