~cairo-dock-team/ubuntu/oneiric/cairo-dock-plug-ins/2.3.0-2.1

« back to all changes in this revision

Viewing changes to mail/src/cd-mail-applet-etpan.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2010-05-07 22:46:35 UTC
  • Revision ID: james.westby@ubuntu.com-20100507224635-3iqm9p2xq15gwwr7
Tags: 2.1.3-10-lucid-0ubuntu3
* New bug-fixed release (LP: #576647)
* LP: #575178 (MP: fixed a double-free on the "cover-dir" variable
             of the banshee backend)
* LP: #523447 (MP: fixed a memory buffer overflow when getting the
             cover if the artist or album has chinese/russian characters)
* CD Forum: Switcher : fixed a division by 0 in the case he number
  of desktop is null (can occur if the dock is launched before the WM)
* CD Forum: Mail : allow the dock to isolate the applet if it crashes

Show diffs side-by-side

added added

removed removed

Lines of Context:
265
265
{
266
266
        if( !pUpdatedMailAccount ) return TRUE;
267
267
        CairoDockModuleInstance *myApplet = pUpdatedMailAccount->pAppletInstance;
268
 
        CairoContainer *pContainer = CD_APPLET_MY_ICONS_LIST_CONTAINER;
 
268
        CD_APPLET_ENTER;
 
269
        CairoContainer *pContainer = CD_APPLET_MY_ICONS_LIST_CONTAINER;
269
270
        Icon *pIcon = pUpdatedMailAccount->icon;
270
271
        if (pIcon == NULL)  // cas d'un seul compte.
271
272
        {
272
273
                pIcon = myIcon;
273
274
                pContainer = myContainer;
274
275
        }
275
 
        g_return_val_if_fail (pIcon != NULL, TRUE);
 
276
        CD_APPLET_LEAVE_IF_FAIL (pIcon != NULL, TRUE);
276
277
        
277
278
        //\_______________________ On met a jour l'icone du compte.
278
279
        cairo_t *pIconContext = cairo_create (pIcon->pIconBuffer);
313
314
        cairo_dock_redraw_icon (pIcon, pContainer);
314
315
        
315
316
        pUpdatedMailAccount->bInitialized = TRUE;
316
 
        return TRUE;
 
317
        CD_APPLET_LEAVE (TRUE);
317
318
}
318
319
 
319
320
void cd_mail_mark_all_mails_as_read(CDMailAccount *pMailAccount)