[gnome-system-monitor] Fix accelerator collision in "Search for Open Files" dialog
- From: Chris KÃhl <chriskuehl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Fix accelerator collision in "Search for Open Files" dialog
- Date: Sat, 14 Jan 2012 13:48:56 +0000 (UTC)
commit 5d9a1fa8b3ea1db94d1bbdb5c8e95d768a95aa9a
Author: Chris KÃhl <chrisk openismus com>
Date: Sat Jan 14 14:43:00 2012 +0100
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.
src/lsof.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/lsof.cpp b/src/lsof.cpp
index 98ed99d..2ed677e 100644
--- a/src/lsof.cpp
+++ b/src/lsof.cpp
@@ -346,6 +346,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]