summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-26 06:59:45 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-10-31 18:02:46 +0100
commite784c3a4059704bf33ce0e4fdeafb7d70864cb9b (patch)
treedf15a134923ceab5a8adda226a6b9df2c4e395aa
parent7496e52593d37dd69ab5b39f4091b340a758679c (diff)
downloadcontrol-center-e784c3a4059704bf33ce0e4fdeafb7d70864cb9b.tar
control-center-e784c3a4059704bf33ce0e4fdeafb7d70864cb9b.tar.gz
control-center-e784c3a4059704bf33ce0e4fdeafb7d70864cb9b.tar.bz2
control-center-e784c3a4059704bf33ce0e4fdeafb7d70864cb9b.tar.xz
control-center-e784c3a4059704bf33ce0e4fdeafb7d70864cb9b.zip
switch from render_to_drawable() to cairo context
-rwxr-xr-xcontrol-center5
1 files 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;