June 19, 2013
On 06/17/2013 09:32 PM, Alex Horvat wrote:
> On Monday, 17 June 2013 at 17:52:38 UTC, Mike Wey wrote:
>> On 06/17/2013 04:44 AM, Alex Horvat wrote:
>>> On Sunday, 16 June 2013 at 18:22:47 UTC, Mi
>>>>
>>>> Could you try again with the latest git?
>>>>
>>>> https://github.com/gtkd-developers/GtkD/commit/ab664087b9d354f9cae7e11c17f0b7125dcf8bdd
>>>>
>>>>
>>>
>>> OK, I pulled the changes and rebuilt gtkd but the error is still the
>>> same.
>>>
>>> I tried all the variations in code listed in my first post, plus the one
>>> you suggested with the double cast, but everything failed in the same
>>> ways as before.
>>>
>>> On the plus side, nothing new broke - it still works with the
>>> work-around way I've got.
>>>
>>> Is there any more info I can supply that would help you?
>>
>> What OS are you using and which compiler?
>
> Linux (Fedora) 64bit, DMD 2.063.1

I seem to have missed a few cases in the last commit, would you mind trying again?

https://github.com/gtkd-developers/GtkD/commit/7e95380bbb4f569c95fc9435711e1f2ec73122fe

-- 
Mike Wey
June 20, 2013
>
> I seem to have missed a few cases in the last commit, would you mind trying again?
>
> https://github.com/gtkd-developers/GtkD/commit/7e95380bbb4f569c95fc9435711e1f2ec73122fe

Sorry, no changes - still getting the same errors as before.
June 20, 2013
On 06/20/2013 07:53 AM, Alex Horvat wrote:
>>
>> I seem to have missed a few cases in the last commit, would you mind
>> trying again?
>>
>> https://github.com/gtkd-developers/GtkD/commit/7e95380bbb4f569c95fc9435711e1f2ec73122fe
>>
>
> Sorry, no changes - still getting the same errors as before.

Does this code run successfully for you?

----
import gtk.Main;
import gtk.TreeStore;
import gtk.TreeView;

void main(string[] args)
{
	Main.init(args);

	TreeStore ts = new TreeStore([GType.STRING, GType.STRING]);
	TreeView tv = new TreeView();

	tv.setModel(ts);

	TreeStore store = cast(TreeStore)tv.getModel();

	assert(store !is null);
	store.getNColumns();
}
----

-- 
Mike Wey
June 21, 2013
On Thursday, 20 June 2013 at 17:44:18 UTC, Mike Wey wrote:
> On 06/20/2013 07:53 AM, Alex Horvat wrote:
>>>
>>> I seem to have missed a few cases in the last commit, would you mind
>>> trying again?
>>>
>>> https://github.com/gtkd-developers/GtkD/commit/7e95380bbb4f569c95fc9435711e1f2ec73122fe
>>>
>>
>> Sorry, no changes - still getting the same errors as before.
>
> Does this code run successfully for you?
>
> ----
> import gtk.Main;
> import gtk.TreeStore;
> import gtk.TreeView;
>
> void main(string[] args)
> {
> 	Main.init(args);
>
> 	TreeStore ts = new TreeStore([GType.STRING, GType.STRING]);
> 	TreeView tv = new TreeView();
>
> 	tv.setModel(ts);
>
> 	TreeStore store = cast(TreeStore)tv.getModel();
>
> 	assert(store !is null);
> 	store.getNColumns();
> }
> ----


Yes, and I did writeln(store) and the result was a treestore so this code works fine.

Yet still my code doesn't work even though it's effectively doing the same thing, kind of weird.
1 2
Next ›   Last »