~wwwjfy/notify-osd/dual-monitor-fix

« back to all changes in this revision

Viewing changes to src/bubble.c

Merged my fix-451086 branch after review and approval from Ted. Fixes LP:
#451086.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2393
2393
 
2394
2394
        priv = GET_PRIVATE (self);
2395
2395
 
 
2396
        // check if an app tries to set the same file as icon again, this check
 
2397
        // avoids superfluous regeneration of the tile/blur-cache for the icon,
 
2398
        // thus it improves performance in update- and append-cases
 
2399
        if (!g_strcmp0 (priv->old_icon_filename->str, filepath))
 
2400
                return;
 
2401
 
 
2402
        // store the new icon-basename
 
2403
        g_string_assign (priv->old_icon_filename, filepath);
 
2404
 
2396
2405
        if (priv->icon_pixbuf)
2397
2406
        {
2398
2407
                g_object_unref (priv->icon_pixbuf);
2528
2537
 
2529
2538
        priv = GET_PRIVATE (self);
2530
2539
 
 
2540
        // "reset" the stored the icon-filename, fixes LP: #451086
 
2541
        g_string_assign (priv->old_icon_filename, "\0");
 
2542
 
2531
2543
        if (priv->icon_pixbuf)
2532
2544
        {
2533
2545
                g_object_unref (priv->icon_pixbuf);