summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-19 00:43:39 +0100
committerinfirit <[email protected]>2014-12-19 00:48:54 +0100
commite39965fb74147b0c2f81420c1c9a512b881237d1 (patch)
tree17314a2b326528e6e69146597637ed8315bd1739
parent18833cb8c4c52155e055ef54d52dacc34d75d551 (diff)
downloadmate-system-monitor-e39965fb74147b0c2f81420c1c9a512b881237d1.tar.bz2
mate-system-monitor-e39965fb74147b0c2f81420c1c9a512b881237d1.tar.xz
Fix accelerator collision in "Search for Open Files" dialog
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 <[email protected]>
-rw-r--r--src/lsof.cpp2
1 files changed, 2 insertions, 0 deletions
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);