From e784c3a4059704bf33ce0e4fdeafb7d70864cb9b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 26 Nov 2013 06:59:45 +0100 Subject: switch from render_to_drawable() to cairo context --- control-center | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/control-center b/control-center index 7f81caf8..0f9d4f4e 100755 --- a/control-center +++ b/control-center @@ -1050,7 +1050,7 @@ sub stop_wait_area() { } $wait_darea->signal_connect(draw => sub { - my ($w) = @_; + my ($w, $cr) = @_; return if !$wait_darea->get_realized; return unless $run_pixbuf; # some people got an expose event before we start an embedded tool return unless $wait_darea->{size}; @@ -1067,7 +1067,8 @@ $wait_darea->signal_connect(draw => sub { $w->{text_yy} = $w->{pix_yy} + ($w->{pix_width} - $txt_width)/2; $w->{text_xx} = $w->{pix_xx} + $w->{pix_height} + 5; } - $pixbuf->render_to_drawable($w->get_window, $w->get_style->fg_gc('normal'), 0, 0, $w->{pix_yy}, $w->{pix_xx}, $w->{pix_width}, $w->{pix_height}, 'normal', 0, 0); + Gtk3::Gdk::cairo_set_source_pixbuf($cr, $pixbuf, $w->{pix_yy}, $w->{pix_xx}); #0, 0); + $cr->paint; $cr->move_to($w->{text_yy}, $w->{text_xx}); Pango::Cairo::show_layout($cr, $w->{layout}); $run_counter += $run_counter_add; -- cgit v1.2.1