Re: Porting to gobject introspection

* Jiří Techet [2011-12-22 15:52 +0100]:


I am trying to port the demos to use gobject
introspection. But I seem to be unable to grok the introspection

First, the method called by the demo is
champlain_label_new_with_text() and not
champlain_marker_new_with_text() which appears you try to call (and
which doesn't exist).

Well I took as an example the last version of that I
could find:

Ah, OK, that was using the old API - there will be more changes like
this if you want to convert it to the introspection-based bindings.

It was an exercise for me to start from the old API as we have to
develop something using it and sooner or later we will have to switch
to the new API … So I wanted to have a feeling of the difficulty of
the task.

BTW once I have finished rewritting those (I'll have some time on the
25 I guess) are you interested in the result ? It would probably help
people looking for example I think.

Sure! Having more demos is always good both for new users and also for
testing all the features. At the moment libchamplain doesn't have many
demos testing introspection bindings and having a demo testing more
libchamplain features is certainly welcome.

Since it gave me the opportunity to test mercurial-git I did the port

I uploaded the diff to codereview:

I have some remarks on the code in order to make it more pythonic. But
I don't know if it's possible (I'll try to take a look some time).

(°> Nicolas Évrard
( ) Liège

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]