The patch above caused the following error later:
*** Can't use an undefined value as an ARRAY reference at /usr/bin/shutter line 3735.
which made all context menu items greyed out. An improved patch, which fixes the context menu display, follows:
@@ -3723,7 +3723,7 @@ #edit if ( $n_items && defined $key - && defined @{ $session_screens{$key}->{'undo'} } + && $session_screens{$key}->{'undo'} && scalar @{ $session_screens{$key}->{'undo'} } > 1 ) { $sm->{_menuitem_undo}->set_sensitive(TRUE); @@ -3734,7 +3734,7 @@
if ( $n_items && defined $key - && defined @{ $session_screens{$key}->{'redo'} } + && $session_screens{$key}->{'redo'} && scalar @{ $session_screens{$key}->{'redo'} } > 0 ) { $sm->{_menuitem_redo}->set_sensitive(TRUE);
The patch above caused the following error later:
*** Can't use an undefined value as an ARRAY reference at /usr/bin/shutter line 3735.
which made all context menu items greyed out. An improved patch, which fixes the context menu display, follows:
@@ -3723,7 +3723,7 @@
#edit
&& defined $key screens{ $key}-> {'undo' } } screens{ $key}-> {'undo' }
&& scalar @{ $session_ screens{ $key}-> {'undo' } } > 1 )
$sm->{_ menuitem_ undo}-> set_sensitive( TRUE);
if ( $n_items
- && defined @{ $session_
+ && $session_
{
@@ -3734,7 +3734,7 @@
if ( $n_items
&& defined $key screens{ $key}-> {'redo' } } screens{ $key}-> {'redo' }
&& scalar @{ $session_ screens{ $key}-> {'redo' } } > 0 )
$sm->{_ menuitem_ redo}-> set_sensitive( TRUE);
- && defined @{ $session_
+ && $session_
{