xxbartosxx schrieb: > Hi, > I use a Gtk.TreeStore(typeof(long), typeof(string), typeo(string)) > but when I do this: > (treeviewCategoriesAndProducts.Model as Gtk.TreeStore).SetValue(iter, 0, > 1102L); > > I get this warning: > > (CashRegister:10686): Gtk-WARNING **: > /build/buildd/gtk+2.0-2.12.9/gtk/gtktreestore.c:762: Unable to convert from > gfloat to gint64 > Are you sure this warning occurs as a result of this command? Gtk# maps the C# "long" data type of column 0 into the gint64 C type. Seems like you want to assign a float value to the column, but the above line indicates that you did everything correctly.
Since this is a pretty stable part of Gtk#, I expect the error to be on your side; nevertheless you can file a bug report on http://www.mono-project.com/Bugs if the problem persists. You should also consider updating your Gtk# version(always a good idea :-) ). > > Is this a bug? pls some advice I am really stuck on this. > > thx > _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
