From e39965fb74147b0c2f81420c1c9a512b881237d1 Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 19 Dec 2014 00:43:39 +0100 Subject: Fix accelerator collision in "Search for Open Files" dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The accelerators for the Clear and Close buttons were colliding. The patch changes the Clear button to use 'l' as the accelerator. Taken from GSM commit: 5d9a1fa8b3ea1db94d1bbdb5c8e95d768a95aa9a From: Chris Kühl --- src/lsof.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lsof.cpp b/src/lsof.cpp index 56a5bfa..bb95211 100644 --- a/src/lsof.cpp +++ b/src/lsof.cpp @@ -347,6 +347,8 @@ void procman_lsof(ProcData *procdata) GtkWidget *search_button = gtk_button_new_from_stock(GTK_STOCK_FIND); gtk_box_pack_start(GTK_BOX(hbox), search_button, FALSE, FALSE, 0); GtkWidget *clear_button = gtk_button_new_from_stock(GTK_STOCK_CLEAR); + /* The default accelerator collides with the default close accelerator. */ + gtk_button_set_label(GTK_BUTTON(clear_button), "C_lear"); gtk_box_pack_start(GTK_BOX(hbox), clear_button, FALSE, FALSE, 0); -- cgit v1.2.1