From 1da92bdd62844eefbe0ec3b773db4fc8a562d384 Mon Sep 17 00:00:00 2001 From: Gankov Andrey Date: Thu, 6 Mar 2014 14:31:11 +0300 Subject: [PATCH] gtk: Add ListStore.SetValue overload for long type Without that change, using ListStore.SetValue with a long would use the float overload, which might not be expected and cause some issues. Signed-off-by: Bertrand Lorentz --- gtk/ListStore.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gtk/ListStore.cs b/gtk/ListStore.cs index 694beb26f..08f7bbeb0 100644 --- a/gtk/ListStore.cs +++ b/gtk/ListStore.cs @@ -72,6 +72,13 @@ namespace Gtk { val.Dispose (); } + public void SetValue (Gtk.TreeIter iter, int column, long value) + { + GLib.Value val = new GLib.Value (value); + SetValue (iter, column, val); + val.Dispose (); + } + public void SetValue (Gtk.TreeIter iter, int column, string value) { GLib.Value val = new GLib.Value (value);