Skip to content

Commit

Permalink
Declare variables at the beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
Photon89 authored Dec 31, 2024
1 parent 1c7e2ce commit 676c28a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bin/shutter
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,11 @@ my $wnck_screen;
my $x11_supported;
my $zoom_active;
#data structures
#--------------------------------------
my %plugins; #hash to store plugin infos
my %accounts; #hash to store account infos
my %settings; #hash to store settings
#-------------------------------------------------------
my %plugins; #hash to store plugin infos
my %accounts; #hash to store account infos
my %settings; #hash to store settings
my @supported_formats; #hash to store available supported file formats

sub STARTUP {
# This is called by $app->run below if another Shutter instance is not running.
Expand Down Expand Up @@ -1233,8 +1234,7 @@ sub STARTUP {
$scale_box->pack_start($scale, TRUE, TRUE, 0);

#add compatile, writeable file types
my $combobox_type = Gtk3::ComboBoxText->new;
my @supported_formats;
$combobox_type = Gtk3::ComboBoxText->new;

foreach my $format (Gtk3::Gdk::Pixbuf::get_formats()) {
my $format_name = $format->get_name;
Expand Down

0 comments on commit 676c28a

Please sign in to comment.