~didrocks/notify-osd/bootstrap

« back to all changes in this revision

Viewing changes to src/bubble.c

  • Committer: Mirco Müller
  • Date: 2012-02-07 12:29:02 UTC
  • Revision ID: mirco.mueller@canonical.com-20120207122902-pdi10l4zjpec3k79
reverted last commit, because it didn't go through review yet and was pushed accidentally to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
663
663
        }
664
664
 
665
665
        // clear, render top-left part of shadow/background in scratch-surface
666
 
    cairo_scale (cr, 1.0f, 1.0f);
 
666
        cairo_scale (cr, 1.0f, 1.0f);
667
667
        cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
668
668
        cairo_paint (cr);
669
669
        cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
670
670
 
671
 
        GdkColor color;
672
 
        gchar* color_string = NULL;
673
 
    color_string = defaults_get_bubble_bg_color (d);
674
 
        gdk_color_parse (color_string, &color);
675
 
    g_free (color_string);
676
 
        
677
671
        if (priv->composited)
678
672
        {
679
673
                _draw_shadow (
695
689
                cairo_fill (cr);
696
690
                cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
697
691
                cairo_set_source_rgba (cr,
698
 
                                       0.75 * ((double) color.red / 65535.0),
699
 
                                       0.75 * ((double) color.green / 65535.0),
700
 
                                       0.75 * ((double) color.blue / 65535.0),
 
692
                                       BUBBLE_BG_COLOR_R,
 
693
                                       BUBBLE_BG_COLOR_G,
 
694
                                       BUBBLE_BG_COLOR_B,
701
695
                                       BUBBLE_BG_COLOR_A);
702
696
        }
703
697
        else
704
698
                cairo_set_source_rgb (cr,
705
 
                                       0.75 * ((double) color.red / 65535.0),
706
 
                                       0.75 * ((double) color.green / 65535.0),
707
 
                                       0.75 * ((double) color.blue / 65535.0));
 
699
                                      BUBBLE_BG_COLOR_R,
 
700
                                      BUBBLE_BG_COLOR_G,
 
701
                                      BUBBLE_BG_COLOR_B);
708
702
 
709
703
        draw_round_rect (
710
704
                cr,