After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 472908 - Make pango.Context non-instantiable
Make pango.Context non-instantiable
Status: RESOLVED FIXED
Product: pygtk
Classification: Bindings
Component: pango
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2007-09-02 18:56 UTC by Behdad Esfahbod
Modified: 2007-09-02 20:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Behdad Esfahbod 2007-09-02 18:56:21 UTC
Those should be pango.Context and pango.FontMap.  pango.Renderer is already   non-instantiable.

Alternatively, pango.Context() can be changed to take a fontmap argument and return fontmap.create_context(), but that deviates from the C API.
Comment 1 Behdad Esfahbod 2007-09-02 18:56:33 UTC
Also pango.Font
Comment 2 Behdad Esfahbod 2007-09-02 19:02:55 UTC
And pango.FontFace and pango.FontFamily
Comment 3 Gustavo Carneiro 2007-09-02 19:11:23 UTC
pango.FontMap will become non-instantiable as soon as the GObject type receives the 'abstract' flag (G_TYPE_FLAG_ABSTRACT).  Probably the others as well.
Comment 4 Behdad Esfahbod 2007-09-02 19:38:20 UTC
Makes sense for all except for pango.Context where we never subclass, so can't be made abstract.
Comment 5 Behdad Esfahbod 2007-09-02 19:38:44 UTC
Filed bug 472924 to make Font* abstract in pango.