From: Ricardo Mones Date: Sat, 10 Nov 2018 18:46:45 +0000 (+0100) Subject: Window's set_icon_list needs an array ref X-Git-Tag: 1.3.0~44 X-Git-Url: http://git.claws-mail.org/?p=clawsker.git;a=commitdiff_plain;h=b108ec88b2714a453ef2dc46c39b360f26926ab6 Window's set_icon_list needs an array ref Error was “*** Gtk3::Window::set_icon_list: passed too many parameters (expected 2, got 4); ignoring excess at ./clawsker line 2878.“ followed by “need an array ref to convert to GList at ./clawsker line 2878.” See: https://developer.gnome.org/gtk3/stable/GtkWindow.html#gtk-window-set-icon-list --- diff --git a/clawsker b/clawsker index 805ba18..0c368ca 100755 --- a/clawsker +++ b/clawsker @@ -2833,7 +2833,7 @@ sub new_button_box { } sub get_app_icons { - return @APPICONS if (@APPICONS); + return \@APPICONS if (@APPICONS); my @names; if (-d $DATADIR) { # installed my $dir = $DATADIR . '/icons/hicolor'; @@ -2850,7 +2850,7 @@ sub get_app_icons { $icon = Gtk3::Gdk::Pixbuf->new_from_file($_) if (-f $_); push @APPICONS, $icon if ($icon); } - return @APPICONS; + return \@APPICONS; } sub escape_key_handler {