[Gtk-sharp-list] Unable to convert from gfloat to gint64

Bart Verstraete bart at tux-solutions.be
Sat Dec 6 08:07:15 EST 2008


I think I got it, I ave to cast the 'long' to a 'object'. It works  
perfect for now ;-)

grtz Bart

Christian Hoff schreef:
> 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
>>   
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bart.vcf
Type: text/x-vcard
Size: 296 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20081206/54d326b2/attachment-0001.vcf 


More information about the Gtk-sharp-list mailing list