[poppler] Poppler glibmm bindings

Glenn Rice glennricster at gmail.com
Tue Oct 16 13:11:34 PDT 2012


Although it is not generated from the gir files, for the most part all 
you have to do is tell gmmproc what to name the c++ classes and methods, 
and which c objects and methods they are derived from.  Then the actual 
c++ code is generated.  There were not many cases that needed hand 
coding. The hardest part was converting your poppler-glib demo to use 
gtkmm and my poppler-glibmm library.  Of course there is no automatic 
way to do that.

As I understand it there is some work by the gtkmm devs to do some of 
the conversion work from the gir files, but I think that is to replace 
the clumsy defs file generation that is currently used. Not to replace 
the hg and ccg file creation, from which files the actual code is 
generated.

In any case, I have attached a tarball of the code.
Glenn

On 10/16/2012 01:58 PM, Albert Astals Cid wrote:
> El Dimarts, 16 d'octubre de 2012, a les 13:50:07, Glenn Rice va escriure:
>> The library is not automatically generated from the gir files.
> Sad :-/
>
>> It uses
>> the standard method that glib libraries are wrapped via gmmproc.  There
>> is some maintenance involved as with any library, but generally not that
>> much. gmmproc uses macros that automate the wrapping of most things.
>> There are some things that the macros don't properly handle and so they
>> have to be hand coded.
> Oh :-(
>
>> I am willing to maintain it, and will make it
>> available somewhere else if you are not interested.  I could attach a
>> tarball of the source if you want to take a look.
> Well, let's see how much code and let's see if someone mentions they are
> interested in the feature. I am not pro nor against it at the moment.
>
> Cheers,
>    Albert
>
>> Glenn
>>
>> On 10/16/2012 12:43 PM, Albert Astals Cid wrote:
>>> El Dimarts, 16 d'octubre de 2012, a les 08:17:44, Glenn Rice va escriure:
>>>> I have created a library that wraps the poppler-glib library using
>>>> glibmm/gtkmm's gmmproc.  I don't know if you are interested in this.  I
>>>> am
>>>> not sure where to make this available to the public.  It would be
>>>> somewhat
>>>> nice to have it at freedesktop.org so that it is together with poppler.
>>>> If
>>>> you are interested it could even be integrated in with the rest of
>>>> poppler.
>>>>
>>>>    I would even be willing to pass the code off to you.  I did this for
>>>>
>>>> purely educational purposes of my own.  Although it would be nice to
>>>> share
>>>> the result.
>>>>
>>>> If you are not interested I will probably make it available via
>>>> SourceForge.>>
>>>>    If you would like to take a look at what I have that would be great
>>>>    too.
>>> How much code is it? And more importantly, how much maintaince it needs?
>>> Is it automagically generated from the gir thing?
>>>
>>> Cheers,
>>>
>>>     Albert
>>>> Glenn Rice
>>>> _______________________________________________
>>>> poppler mailing list
>>>> poppler at lists.freedesktop.org
>>>> http://lists.freedesktop.org/mailman/listinfo/poppler
>>> _______________________________________________
>>> poppler mailing list
>>> poppler at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/poppler
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler

-------------- next part --------------
A non-text attachment was scrubbed...
Name: poppler-glibmm-0.20.1.tar.bz2
Type: application/x-bzip
Size: 790508 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20121016/843aad1a/attachment-0001.bin>


More information about the poppler mailing list