Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package perl-Gtk3-ImageView for
openSUSE:Factory checked in at 2021-05-18 18:27:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Gtk3-ImageView (Old)
and /work/SRC/openSUSE:Factory/.perl-Gtk3-ImageView.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Gtk3-ImageView"
Tue May 18 18:27:33 2021 rev:3 rq:894105 version:9
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Gtk3-ImageView/perl-Gtk3-ImageView.changes
2021-05-10 15:41:16.501110877 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Gtk3-ImageView.new.2988/perl-Gtk3-ImageView.changes
2021-05-18 18:28:02.578546198 +0200
@@ -1,0 +2,6 @@
+Sun May 16 03:07:48 UTC 2021 - Tina M??ller <[email protected]>
+
+- updated to 9
+ see /usr/share/doc/packages/perl-Gtk3-ImageView/
+
+-------------------------------------------------------------------
Old:
----
Gtk3-ImageView-8.tar.gz
New:
----
Gtk3-ImageView-9.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Gtk3-ImageView.spec ++++++
--- /var/tmp/diff_new_pack.7TjlZp/_old 2021-05-18 18:28:03.002544360 +0200
+++ /var/tmp/diff_new_pack.7TjlZp/_new 2021-05-18 18:28:03.006544343 +0200
@@ -18,7 +18,7 @@
%define cpan_name Gtk3-ImageView
Name: perl-Gtk3-ImageView
-Version: 8
+Version: 9
Release: 0
Summary: Image viewer widget for Gtk3
License: Artistic-1.0 OR GPL-1.0-or-later
++++++ Gtk3-ImageView-8.tar.gz -> Gtk3-ImageView-9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Gtk3-ImageView-8/META.json
new/Gtk3-ImageView-9/META.json
--- old/Gtk3-ImageView-8/META.json 2021-05-07 11:06:27.000000000 +0200
+++ new/Gtk3-ImageView-9/META.json 2021-05-15 20:45:24.000000000 +0200
@@ -61,6 +61,6 @@
"web" : "https://github.com/carygravel/gtk3-imageview"
}
},
- "version" : "8",
+ "version" : "9",
"x_serialization_backend" : "JSON::PP version 4.04"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Gtk3-ImageView-8/META.yml
new/Gtk3-ImageView-9/META.yml
--- old/Gtk3-ImageView-8/META.yml 2021-05-07 11:06:27.000000000 +0200
+++ new/Gtk3-ImageView-9/META.yml 2021-05-15 20:45:24.000000000 +0200
@@ -32,5 +32,5 @@
resources:
bugtracker: https://github.com/carygravel/gtk3-imageview/issues
repository: https://github.com/carygravel/gtk3-imageview.git
-version: '8'
+version: '9'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Gtk3-ImageView-8/lib/Gtk3/ImageView/Tool/Dragger.pm
new/Gtk3-ImageView-9/lib/Gtk3/ImageView/Tool/Dragger.pm
--- old/Gtk3-ImageView-8/lib/Gtk3/ImageView/Tool/Dragger.pm 2021-05-07
11:05:07.000000000 +0200
+++ new/Gtk3-ImageView-9/lib/Gtk3/ImageView/Tool/Dragger.pm 2021-05-15
20:44:28.000000000 +0200
@@ -8,7 +8,7 @@
Readonly my $FLOAT_EPS => 0.01;
Readonly my $RIGHT_BUTTON => 3;
-our $VERSION = 8;
+our $VERSION = 9;
sub button_pressed {
my $self = shift;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Gtk3-ImageView-8/lib/Gtk3/ImageView/Tool/Selector.pm
new/Gtk3-ImageView-9/lib/Gtk3/ImageView/Tool/Selector.pm
--- old/Gtk3-ImageView-8/lib/Gtk3/ImageView/Tool/Selector.pm 2021-05-07
11:05:07.000000000 +0200
+++ new/Gtk3-ImageView-9/lib/Gtk3/ImageView/Tool/Selector.pm 2021-05-15
20:44:28.000000000 +0200
@@ -3,14 +3,13 @@
use warnings;
use strict;
use base 'Gtk3::ImageView::Tool';
-use POSIX qw(round);
use Glib qw(TRUE FALSE); # To get TRUE and FALSE
use List::Util qw(min);
use Readonly;
Readonly my $CURSOR_PIXELS => 5;
Readonly my $RIGHT_BUTTON => 3;
-our $VERSION = 8;
+our $VERSION = 9;
my %cursorhash = (
lower => {
@@ -121,10 +120,10 @@
$self->view->to_image_coords( min( $x, $x2 ), min( $y, $y2 ) );
$self->view->set_selection(
{
- x => round($x),
- y => round($y),
- width => round($w),
- height => round($h)
+ x => int( $x + 0.5 ),
+ y => int( $y + 0.5 ),
+ width => int( $w + 0.5 ),
+ height => int( $h + 0.5 )
}
);
return;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Gtk3-ImageView-8/lib/Gtk3/ImageView/Tool/SelectorDragger.pm
new/Gtk3-ImageView-9/lib/Gtk3/ImageView/Tool/SelectorDragger.pm
--- old/Gtk3-ImageView-8/lib/Gtk3/ImageView/Tool/SelectorDragger.pm
2021-05-07 11:05:07.000000000 +0200
+++ new/Gtk3-ImageView-9/lib/Gtk3/ImageView/Tool/SelectorDragger.pm
2021-05-15 20:44:28.000000000 +0200
@@ -5,7 +5,7 @@
use base 'Gtk3::ImageView::Tool';
use Glib qw(TRUE FALSE); # To get TRUE and FALSE
-our $VERSION = 8;
+our $VERSION = 9;
sub new {
my $class = shift;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Gtk3-ImageView-8/lib/Gtk3/ImageView/Tool.pm
new/Gtk3-ImageView-9/lib/Gtk3/ImageView/Tool.pm
--- old/Gtk3-ImageView-8/lib/Gtk3/ImageView/Tool.pm 2021-05-07
11:05:39.000000000 +0200
+++ new/Gtk3-ImageView-9/lib/Gtk3/ImageView/Tool.pm 2021-05-15
20:44:26.000000000 +0200
@@ -4,7 +4,7 @@
use strict;
use Glib qw(TRUE FALSE); # To get TRUE and FALSE
-our $VERSION = 8;
+our $VERSION = 9;
sub new {
my $class = shift;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Gtk3-ImageView-8/lib/Gtk3/ImageView.pm
new/Gtk3-ImageView-9/lib/Gtk3/ImageView.pm
--- old/Gtk3-ImageView-8/lib/Gtk3/ImageView.pm 2021-05-07 11:05:43.000000000
+0200
+++ new/Gtk3-ImageView-9/lib/Gtk3/ImageView.pm 2021-05-15 20:44:24.000000000
+0200
@@ -17,7 +17,7 @@
Readonly my $HALF => 0.5;
Readonly my $MAX_ZOOM => 100;
-our $VERSION = 8;
+our $VERSION = 9;
use Glib::Object::Subclass Gtk3::DrawingArea::, signals => {
'zoom-changed' => {
@@ -66,33 +66,42 @@
[qw/readable writable/] # flags
),
Glib::ParamSpec->float(
- 'resolution-ratio', # name
- 'resolution-ratio', # nick
- 'Ratio of x-resolution/y-resolution', # blurb
- 0.0001, # minimum
- 1000.0, # maximum
- 1.0, # default_value
- [qw/readable writable/] # flags
+ 'zoom-step', # name
+ 'Zoom step', # nick
+ 'Zoom coefficient for every scrolling step', # blurb
+ 1.0, # minimum
+ 10.0, # maximum
+ 2.0, # default_value
+ [qw/readable writable/] # flags
+ ),
+ Glib::ParamSpec->float(
+ 'resolution-ratio', # name
+ 'resolution-ratio', # nick
+ 'Ratio of x-resolution/y-resolution', # blurb
+ 0.0001, # minimum
+ 1000.0, # maximum
+ 1.0, # default_value
+ [qw/readable writable/] # flags
),
Glib::ParamSpec->scalar(
- 'tool', # name
- 'tool', # nickname
- 'Active Gtk3::ImageView::Tool', # blurb
- [qw/readable writable/] # flags
+ 'tool', # name
+ 'tool', # nickname
+ 'Active Gtk3::ImageView::Tool', # blurb
+ [qw/readable writable/] # flags
),
Glib::ParamSpec->scalar(
- 'selection', # name
- 'Selection', # nick
- 'Gdk::Rectangle hash of selected region', # blurb
- [qw/readable writable/] # flags
+ 'selection', # name
+ 'Selection', # nick
+ 'Gdk::Rectangle hash of selected region', # blurb
+ [qw/readable writable/] # flags
),
Glib::ParamSpec->boolean(
- 'zoom-to-fit', # name
- 'Zoom to fit', # nickname
+ 'zoom-to-fit', # name
+ 'Zoom to fit', # nickname
'Whether the zoom factor is automatically calculated to fit the window'
- , # blurb
- TRUE, # default
- [qw/readable writable/] # flags
+ , # blurb
+ TRUE, # default
+ [qw/readable writable/] # flags
),
Glib::ParamSpec->float(
'zoom-to-fit-limit', # name
@@ -272,10 +281,10 @@
my $zoom;
$self->set_zoom_to_fit(FALSE);
if ( $event->direction eq 'up' ) {
- $zoom = $self->get_zoom * 2;
+ $zoom = $self->get_zoom * $self->get('zoom-step');
}
else {
- $zoom = $self->get_zoom / 2;
+ $zoom = $self->get_zoom / $self->get('zoom-step');
}
$self->_set_zoom_with_center( $zoom, $center_x, $center_y );
return;
@@ -478,14 +487,14 @@
sub zoom_in {
my ($self) = @_;
$self->set_zoom_to_fit(FALSE);
- $self->_set_zoom_no_center( $self->get_zoom * 2 );
+ $self->_set_zoom_no_center( $self->get_zoom * $self->get('zoom-step') );
return;
}
sub zoom_out {
my ($self) = @_;
$self->set_zoom_to_fit(FALSE);
- $self->_set_zoom_no_center( $self->get_zoom / 2 );
+ $self->_set_zoom_no_center( $self->get_zoom / $self->get('zoom-step') );
return;
}
@@ -668,7 +677,7 @@
=head1 VERSION
-8
+9
=head1 SYNOPSIS
@@ -740,11 +749,11 @@
=head2 $view->zoom_in
-Doubles the current zoom.
+Increases the current zoom by C<zoom-step> times (defaults to 2).
=head2 $view->zoom_out
-Halves the current zoom.
+Decreases the current zoom by C<zoom-step> times (defaults to 2).
=head2 $view->zoom_to_fit