Window's set_icon_list needs an array ref
authorRicardo Mones <ricardo@mones.org>
Sat, 10 Nov 2018 18:46:45 +0000 (19:46 +0100)
committerRicardo Mones <ricardo@mones.org>
Sat, 10 Nov 2018 18:46:45 +0000 (19:46 +0100)
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

clawsker

index 805ba185f1c707cead569522cc6e12ff41cdf43d..0c368cab25509f81cc25fa349bd419506881128e 100755 (executable)
--- a/clawsker
+++ b/clawsker
@@ -2833,7 +2833,7 @@ sub new_button_box {
 }
 
 sub get_app_icons {
 }
 
 sub get_app_icons {
-    return @APPICONS if (@APPICONS);
+    return \@APPICONS if (@APPICONS);
     my @names;
     if (-d $DATADIR) { # installed
         my $dir = $DATADIR . '/icons/hicolor';
     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);
     }
         $icon = Gtk3::Gdk::Pixbuf->new_from_file($_) if (-f $_);
         push @APPICONS, $icon if ($icon);
     }
-    return @APPICONS;
+    return \@APPICONS;
 }
 
 sub escape_key_handler {
 }
 
 sub escape_key_handler {