diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-02-10 16:46:39 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-02-10 16:46:39 +0000 |
commit | 21c930c315a1874ade5a6d55070272db311928c2 (patch) | |
tree | 143dc68da82ec3c5382dce46e806ed28f042ac1f | |
parent | 6627ad493200cfa085013cb3807e131fcceca409 (diff) | |
download | rpmdrake-21c930c315a1874ade5a6d55070272db311928c2.tar rpmdrake-21c930c315a1874ade5a6d55070272db311928c2.tar.gz rpmdrake-21c930c315a1874ade5a6d55070272db311928c2.tar.bz2 rpmdrake-21c930c315a1874ade5a6d55070272db311928c2.tar.xz rpmdrake-21c930c315a1874ade5a6d55070272db311928c2.zip |
(run_treeview_dialog) add C-F accelerator in order to focus on search entry (#46404)
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | rpmdrake | 5 |
2 files changed, 7 insertions, 0 deletions
@@ -1,6 +1,8 @@ - fix using --justdb option - MandrivaUpdate: o warn when rebooting is needed after installing packages +- rpmdrake: + o add C-F accelerator in order to focus on search entry (#46404) Version 5.6 - 9 February 2009, Thierry Vignaud @@ -617,6 +617,11 @@ sub run_treeview_dialog { $checkbox_show_autoselect = $factory->get_widget("<main>" . strip_first_underscore(N("/_Options"), N("/_Show automatically selected packages"))) and $checkbox_show_autoselect->set_active(!$dont_show_selections->[0]); + + my $accel = Gtk2::AccelGroup->new; + $accel->connect(Gtk2::Gdk->keyval_from_name('F'), ['control-mask'], ['visible'], sub { $find_entry->grab_focus() }); + $w->{real_window}->add_accel_group($accel); + gtkadd( $w->{window}, gtkpack_( |