[Poppler-bugs] [Bug 6921] make PopplerFontInfo GObject

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jul 7 18:53:13 PDT 2007


http://bugs.freedesktop.org/show_bug.cgi?id=6921


kou at cozmixng.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #5630 is|0                           |1
           obsolete|                            |
Attachment #5673 is|0                           |1
           obsolete|                            |




------- Comment #3 from kou at cozmixng.org  2007-07-07 18:52 PST -------
Created an attachment (id=10617)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=10617&action=view)
updated for the current HEAD.

Is this request unreasonable?

I'm maintaining Ruby bindings for poppler-glib. To export poppler object to
Ruby, I need to wrap poppler object by Ruby object.

A wrapper Ruby object copies wrapped poppler object or increments reference
count of wrapped poppler object when a wrapper Ruby object is created. And a
wrapper Ruby object free wrapped poppler object or decrements reference count
of wrapped poppler object when a wrapper Ruby object is destroyed.

If poppler object has GType, it's easy to do that. Because Ruby/GLib (Ruby
bindings for GLib and GObject) provides utility functions for that.


In this case, I need to wrap PopplerFontInfo object. To wrap the object, I need
to copy or increments reference count. But PopplerFontInfo object is difficult
to copy because we can't copy FontInfoScanner object (and it's costly). So I
suggest that we make PopplerFontInfo GObject. Is this unreasonable?


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Poppler-bugs mailing list