diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-18 15:37:41 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-24 21:30:38 +0100 |
commit | e04fc83fd3c1f2b5ac4c7222555deb2da4bad80a (patch) | |
tree | db5133b2a25c1387261cffea8972612fe5805123 | |
parent | d5c3d006f75288627a355c50800389a06475cc5c (diff) | |
download | userdrake-e04fc83fd.tar userdrake-e04fc83fd.tar.gz userdrake-e04fc83fd.tar.bz2 userdrake-e04fc83fd.tar.xz userdrake-e04fc83fd.zip |
"Gtk2::Gdk::Keysyms{XYZ}" => "Gtk3::Gdk::KEY_XYZ"
-rwxr-xr-x | userdrake | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -38,7 +38,6 @@ use POSIX qw(mktime ceil); use USER; #Only for Debugging #use Devel::Peek; -use Gtk2::Gdk::Keysyms; use utf8; use log; @@ -148,7 +147,7 @@ my $searchBox = gtkpack_(Gtk2::HBox->new(0,5), 0, Gtk2::Label->new(N("Search:")), 0, gtksignal_connect($filter = Gtk2::Entry->new, key_press_event => sub { - $_[1]->keyval == $Gtk2::Gdk::Keysyms{Return} + $_[1]->keyval == $Gtk3::Gdk::KEY_Return and Refresh($sysfilter, $filter->get_text); }), 0, my $fbut = Gtk2::Button->new(N("Apply filter")), @@ -771,7 +770,7 @@ sub CreateTree { my (undef, $event) = @_; my (undef, $iter) = $tree->get_selection->get_selected; return unless $iter; - Edit() if $event->keyval == $Gtk2::Gdk::Keysyms{Return}; + Edit() if $event->keyval == $Gtk3::Gdk::KEY_Return; }); $tree; } |