Skip to content

Commit

Permalink
Use the upstream Gtk3::ImageView Selector again, bumping its requirem…
Browse files Browse the repository at this point in the history
…ent to v10
  • Loading branch information
DarthGandalf committed Oct 3, 2021
1 parent 48681ee commit 0977bc2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 179 deletions.
2 changes: 1 addition & 1 deletion bin/shutter
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ use Pango;
use Glib qw/TRUE FALSE/;
use Gtk3 '-init';
use Glib::Object::Subclass qw/Gtk3::Application/;
use Gtk3::ImageView 9;
use Gtk3::ImageView 10;

#filename parsing
use POSIX qw/ strftime /;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ use GooCanvas2;
use GooCanvas2::CairoTypes;
use Shutter::Screenshot::Main;
use Shutter::Screenshot::History;
use Shutter::Screenshot::ImageViewSelector;

use Data::Dumper;
our @ISA = qw(Shutter::Screenshot::Main);
Expand Down Expand Up @@ -65,7 +64,7 @@ sub new {

#view, selector, dragger
$self->{_view} = Gtk3::ImageView->new;
$self->{_selector} = Shutter::Screenshot::ImageViewSelector->new($self->{_view});
$self->{_selector} = Gtk3::ImageView::Tool::Selector->new($self->{_view});
#$self->{_dragger} = Gtk3::ImageView::Tool::Dragger->new($self->{_view});
$self->{_view}->set_interpolation('nearest');
$self->{_view}->set_tool($self->{_selector});
Expand Down

0 comments on commit 0977bc2

Please sign in to comment.