diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-18 01:37:48 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-24 21:30:34 +0100 |
commit | 75738ce3cb6b7282de4e8f2641361f3fae716e83 (patch) | |
tree | a527a63e69461960532d26d18d8aff8c6f7de385 /lib/mouse.pm | |
parent | 21636430b5ed06625213dbf00d4e636c771df7c5 (diff) | |
download | drakx-kbd-mouse-x11-75738ce3cb6b7282de4e8f2641361f3fae716e83.tar drakx-kbd-mouse-x11-75738ce3cb6b7282de4e8f2641361f3fae716e83.tar.gz drakx-kbd-mouse-x11-75738ce3cb6b7282de4e8f2641361f3fae716e83.tar.bz2 drakx-kbd-mouse-x11-75738ce3cb6b7282de4e8f2641361f3fae716e83.tar.xz drakx-kbd-mouse-x11-75738ce3cb6b7282de4e8f2641361f3fae716e83.zip |
perlish ->style() => ->get_style()
Diffstat (limited to 'lib/mouse.pm')
-rw-r--r-- | lib/mouse.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mouse.pm b/lib/mouse.pm index 2d991a5..23310ea 100644 --- a/lib/mouse.pm +++ b/lib/mouse.pm @@ -585,7 +585,7 @@ sub test_mouse { my ($t, $y) = @_; my $layout = $darea->create_pango_layout($t); my ($w) = $layout->get_pixel_size; - $darea->get_window->draw_layout($darea->style->black_gc, + $darea->get_window->draw_layout($darea->get_style->black_gc, ($darea->get_allocation->width-$w)/2, ($darea->get_allocation->height-$height)/2 + $y, $layout); @@ -594,7 +594,7 @@ sub test_mouse { my ($p, $x, $y, $w, $h) = @_; $w = $p->get_width; $h = $p->get_allocated_height; - $p->render_to_drawable($darea->get_window, $darea->style->bg_gc('normal'), 0, 0, + $p->render_to_drawable($darea->get_window, $darea->get_style->bg_gc('normal'), 0, 0, ($darea->get_allocation->width-$width)/2 + $x, ($darea->get_allocation->height-$height)/2 + $y, $w, $h, 'none', 0, 0); }; @@ -628,7 +628,7 @@ sub test_mouse { $draw_by_name->('middle'); } else { my ($x, $y) = @{$offsets{mouse_2b_middle}}; - $darea->get_window->draw_arc($darea->style->black_gc, + $darea->get_window->draw_arc($darea->get_style->black_gc, 1, ($darea->get_allocation->width-$width)/2 + $x, ($darea->get_allocation->height-$height)/2 + $y, 20, 25, 0, 360 * 64); } |