summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/options
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-12 01:06:13 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-12 01:06:13 +0000
commit957aaba4166a51a2cf8125598f721a4685fef233 (patch)
treec99fe5312a627e9fcc2402bc6a90fc1b40fe12db /chrome/browser/gtk/options
parent4a880d23e98905e269bf4c0fd5d6f39e363eabad (diff)
downloadchromium_src-957aaba4166a51a2cf8125598f721a4685fef233.zip
chromium_src-957aaba4166a51a2cf8125598f721a4685fef233.tar.gz
chromium_src-957aaba4166a51a2cf8125598f721a4685fef233.tar.bz2
Use the same string resource everywhere for the "Show Passwords" button.
BUG=none TEST=none Review URL: http://codereview.chromium.org/594039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38865 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/options')
-rw-r--r--chrome/browser/gtk/options/content_page_gtk.cc16
-rw-r--r--chrome/browser/gtk/options/content_page_gtk.h8
2 files changed, 12 insertions, 12 deletions
diff --git a/chrome/browser/gtk/options/content_page_gtk.cc b/chrome/browser/gtk/options/content_page_gtk.cc
index e1aa8be..6d46b92 100644
--- a/chrome/browser/gtk/options/content_page_gtk.cc
+++ b/chrome/browser/gtk/options/content_page_gtk.cc
@@ -186,15 +186,15 @@ GtkWidget* ContentPageGtk::InitPasswordSavingGroup() {
gtk_box_pack_start(GTK_BOX(vbox), passwords_neversave_radio_, FALSE,
FALSE, 0);
- // Add the exceptions button into its own horizontal box so it does not
+ // Add the show passwords button into its own horizontal box so it does not
// depend on the spacing above.
GtkWidget* button_hbox = gtk_hbox_new(FALSE, gtk_util::kLabelSpacing);
gtk_container_add(GTK_CONTAINER(vbox), button_hbox);
- GtkWidget* passwords_exceptions_button = gtk_button_new_with_label(
- l10n_util::GetStringUTF8(IDS_OPTIONS_PASSWORDS_EXCEPTIONS).c_str());
- g_signal_connect(passwords_exceptions_button, "clicked",
- G_CALLBACK(OnPasswordsExceptionsButtonClicked), this);
- gtk_box_pack_start(GTK_BOX(button_hbox), passwords_exceptions_button, FALSE,
+ GtkWidget* show_passwords_button = gtk_button_new_with_label(
+ l10n_util::GetStringUTF8(IDS_OPTIONS_PASSWORDS_SHOWPASSWORDS).c_str());
+ g_signal_connect(show_passwords_button, "clicked",
+ G_CALLBACK(OnShowPasswordsButtonClicked), this);
+ gtk_box_pack_start(GTK_BOX(button_hbox), show_passwords_button, FALSE,
FALSE, 0);
return vbox;
@@ -434,8 +434,8 @@ void ContentPageGtk::OnSystemTitleBarRadioToggled(GtkToggleButton* widget,
}
// static
-void ContentPageGtk::OnPasswordsExceptionsButtonClicked(GtkButton* widget,
- ContentPageGtk* page) {
+void ContentPageGtk::OnShowPasswordsButtonClicked(GtkButton* widget,
+ ContentPageGtk* page) {
ShowPasswordsExceptionsWindow(page->profile());
}
diff --git a/chrome/browser/gtk/options/content_page_gtk.h b/chrome/browser/gtk/options/content_page_gtk.h
index cbf96d0..610c5ab 100644
--- a/chrome/browser/gtk/options/content_page_gtk.h
+++ b/chrome/browser/gtk/options/content_page_gtk.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -66,9 +66,9 @@ class ContentPageGtk : public OptionsPageBase,
static void OnSystemTitleBarRadioToggled(GtkToggleButton* widget,
ContentPageGtk* page);
- // Callback for passwords exceptions button.
- static void OnPasswordsExceptionsButtonClicked(GtkButton* widget,
- ContentPageGtk* page);
+ // Callback for show passwords button.
+ static void OnShowPasswordsButtonClicked(GtkButton* widget,
+ ContentPageGtk* page);
// Callback for password radio buttons.
static void OnPasswordRadioToggled(GtkToggleButton* widget,