Gdk's keyval_from_name is now a class function
authorRicardo Mones <ricardo@mones.org>
Sat, 10 Nov 2018 19:04:52 +0000 (20:04 +0100)
committerRicardo Mones <ricardo@mones.org>
Sat, 10 Nov 2018 19:04:52 +0000 (20:04 +0100)
Fixes “*** Gtk3::Gdk::keyval_from_name: passed too many parameters
(expected 1, got 2); ignoring excess at ./clawsker line 2858.”

clawsker

index db02b42..05d8dba 100755 (executable)
--- a/clawsker
+++ b/clawsker
@@ -2855,7 +2855,7 @@ sub get_app_icons {
 
 sub escape_key_handler {
     my ($widget, $event) = @_;
-    if ($event->keyval == Gtk3::Gdk->keyval_from_name('Escape')) {
+    if ($event->keyval == Gtk3::Gdk::keyval_from_name('Escape')) {
         exit_handler($widget);
     }
 }