From b377a0845818afcd2ba040c8c8e762bbd294024b Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Fri, 26 Sep 2008 22:24:52 +1200 Subject: [PATCH] Center photos on the screen. --- lib/Display/Plugins/FSpot.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/Display/Plugins/FSpot.pm b/lib/Display/Plugins/FSpot.pm index 6bcff21..8664785 100644 --- a/lib/Display/Plugins/FSpot.pm +++ b/lib/Display/Plugins/FSpot.pm @@ -40,6 +40,14 @@ sub display_photo { $self->{'new'}->set_from_file($file); $self->{'new'}->set_opacity(0); $self->{'new'}->set_height($self->{'stage'}->get_height()); + $self->{'new'}->set_anchor_point( + $self->{'new'}->get_width / 2, + $self->{'new'}->get_height / 2 + ); + $self->{'new'}->set_position( + $self->{'stage'}->get_width / 2, + $self->{'stage'}->get_height / 2 + ); #$self->{'stage'}->add($self->{'new'}); #warn "Going to show $file\n"; -- 2.30.2