Re: msevior - r26714 - abiword/trunk/src/af/gr/xp

From: Martin Sevior <msevior_at_gmail.com>
Date: Wed Jun 03 2009 - 11:46:41 CEST

Hi Rob,
          Actually no. It gets destructed after all the fonts are
unref'd and m_pContext
is unreffed.

Cheers

martin

On Wed, Jun 3, 2009 at 6:33 PM, Robert Staudinger
<robert.staudinger@gmail.com> wrote:
> Hi Martin,
>
> nice fix.
>
> Guess you also have to g_object_unref() m_pFontMap in the destructor, then.
>
> Cheers,
> Rob
>
> On Wed, Jun 3, 2009 at 5:05 AM,  <cvs@abisource.com> wrote:
>>
>> Author: msevior
>> Date: 2009-06-03 05:05:15 +0200 (Wed, 03 Jun 2009)
>> New Revision: 26714
>>
>> Modified:
>>   abiword/trunk/src/af/gr/xp/gr_CairoGraphics.cpp
>> Log:
>>
>> Fix the CairoGraphics class so that the the font doesn't change during printing. Thanks for the tip Behdad!
>>
>>
>>
>> Modified: abiword/trunk/src/af/gr/xp/gr_CairoGraphics.cpp
>> ===================================================================
>> --- abiword/trunk/src/af/gr/xp/gr_CairoGraphics.cpp     2009-06-03 02:38:41 UTC (rev 26713)
>> +++ abiword/trunk/src/af/gr/xp/gr_CairoGraphics.cpp     2009-06-03 03:05:15 UTC (rev 26714)
>> @@ -299,7 +299,7 @@
>>
>>  void GR_CairoGraphics::_initPango()
>>  {
>> -       m_pFontMap = pango_cairo_font_map_get_default();
>> +       m_pFontMap =  pango_cairo_font_map_new();
>>        pango_cairo_font_map_set_resolution(PANGO_CAIRO_FONT_MAP(m_pFontMap), m_iDeviceResolution);
>>        m_pContext = pango_cairo_font_map_create_context(PANGO_CAIRO_FONT_MAP(m_pFontMap));
>>
>>
>> -----------------------------------------------
>> To unsubscribe from this list, send a message to
>> abisource-cvs-commit-request@abisource.com with the word
>> unsubscribe in the message body.
>>
>
Received on Wed Jun 3 11:46:56 2009

This archive was generated by hypermail 2.1.8 : Wed Jun 03 2009 - 11:46:56 CEST