Re: Pango::Layout::create ({ImageSurface Cairo Context})
- From: Murray Cumming <murrayc murrayc com>
- To: Dale Mellor <dale rdmp org>
- Cc: gtkmm-list gnome org
- Subject: Re: Pango::Layout::create ({ImageSurface Cairo Context})
- Date: Wed, 21 Nov 2007 16:25:33 +0100
On Wed, 2007-11-21 at 14:32 +0000, Dale Mellor wrote:
> I used Pango::init() in the end, but I had to include pangomm/init.h as
> well as the generic pangomm.h.
>
> This isn't really very C++ is it? Can't you put a singleton somewhere
> which makes sure pango is initialized the first time it is used? Just a
> thought.
That would be nice. But it would be awkward to add the check in every
single class or method.
It couldn't be a simple static instance because the order of
initialization of static instances is not
defined/standardized/consistent/predictable.
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]