121
121
$layout->set_markup("<span font_desc=\"$font_fam $font_size\" weight=\"bold\" foreground=\"#FFFFFF\">" . Glib::Markup::escape_text( $self->{_summary} ) . "</span><span font_desc=\"$font_fam $font_size\" foreground=\"#FFFFFF\">\n" . Glib::Markup::escape_text( $self->{_body} ) . "</span>");
124
123
$cr->set_operator('source');
126
125
if($self->{_sc}->get_mainwindow->get_screen->is_composited){
127
$cr->set_source_rgba( $sel_bg->red / 257 / 255, $sel_bg->green / 257 / 255, $sel_bg->blue / 257 / 255, 0.9 );
126
$cr->set_source_rgba( 1.0, 1.0, 1.0, 0 );
127
Gtk2::Gdk::Cairo::Context::set_source_pixbuf( $cr, $pixbuf, 0, 0 );
130
130
$cr->set_source_rgb( $sel_bg->red / 257 / 255, $sel_bg->green / 257 / 255, $sel_bg->blue / 257 / 255 );
135
137
my ( $lw, $lh ) = $layout->get_pixel_size;
136
138
$cr->move_to( ($w - $lw) / 2, ($h - $lh) / 2 );