Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5374)

Unified Diff: chrome/browser/gtk/keyword_editor_view.cc

Issue 518028: views/gtk: Add missing keyboard accelerators to Search Engines dialog. (Closed)
Patch Set: added views side Created 10 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/views/keyword_editor_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/keyword_editor_view.cc
diff --git a/chrome/browser/gtk/keyword_editor_view.cc b/chrome/browser/gtk/keyword_editor_view.cc
index b1de93f0ade484e78588b8d9dad6c55c8dace54c..7ed31edbab0ffce852b9f7defebc56577611ec91 100644
--- a/chrome/browser/gtk/keyword_editor_view.cc
+++ b/chrome/browser/gtk/keyword_editor_view.cc
@@ -152,8 +152,10 @@ void KeywordEditorView::Init() {
GtkWidget* button_box = gtk_vbox_new(FALSE, gtk_util::kControlSpacing);
gtk_box_pack_start(GTK_BOX(hbox), button_box, FALSE, FALSE, 0);
- add_button_ = gtk_button_new_with_label(
- l10n_util::GetStringUTF8(IDS_SEARCH_ENGINES_EDITOR_NEW_BUTTON).c_str());
+ add_button_ = gtk_button_new_with_mnemonic(
+ gtk_util::ConvertAcceleratorsFromWindowsStyle(
+ l10n_util::GetStringUTF8(
+ IDS_SEARCH_ENGINES_EDITOR_NEW_BUTTON)).c_str());
g_signal_connect(G_OBJECT(add_button_), "clicked",
G_CALLBACK(OnAddButtonClicked), this);
gtk_box_pack_start(GTK_BOX(button_box), add_button_, FALSE, FALSE, 0);
@@ -164,9 +166,10 @@ void KeywordEditorView::Init() {
G_CALLBACK(OnEditButtonClicked), this);
gtk_box_pack_start(GTK_BOX(button_box), edit_button_, FALSE, FALSE, 0);
- remove_button_ = gtk_button_new_with_label(
- l10n_util::GetStringUTF8(
- IDS_SEARCH_ENGINES_EDITOR_REMOVE_BUTTON).c_str());
+ remove_button_ = gtk_button_new_with_mnemonic(
+ gtk_util::ConvertAcceleratorsFromWindowsStyle(
+ l10n_util::GetStringUTF8(
+ IDS_SEARCH_ENGINES_EDITOR_REMOVE_BUTTON)).c_str());
g_signal_connect(G_OBJECT(remove_button_), "clicked",
G_CALLBACK(OnRemoveButtonClicked), this);
gtk_box_pack_start(GTK_BOX(button_box), remove_button_, FALSE, FALSE, 0);
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/views/keyword_editor_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698