| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/gtk/options/content_page_gtk.h" | 5 #include "chrome/browser/gtk/options/content_page_gtk.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 9 #include "base/gfx/gtk_util.h" | 9 #include "base/gfx/gtk_util.h" |
| 10 #include "chrome/browser/browser_list.h" | 10 #include "chrome/browser/browser_list.h" |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 // GTK theme button. | 203 // GTK theme button. |
| 204 GtkWidget* gtk_theme_button = gtk_button_new_with_label( | 204 GtkWidget* gtk_theme_button = gtk_button_new_with_label( |
| 205 l10n_util::GetStringUTF8(IDS_THEMES_GTK_BUTTON).c_str()); | 205 l10n_util::GetStringUTF8(IDS_THEMES_GTK_BUTTON).c_str()); |
| 206 g_signal_connect(G_OBJECT(gtk_theme_button), "clicked", | 206 g_signal_connect(G_OBJECT(gtk_theme_button), "clicked", |
| 207 G_CALLBACK(OnGtkThemeButtonClicked), this); | 207 G_CALLBACK(OnGtkThemeButtonClicked), this); |
| 208 gtk_box_pack_start(GTK_BOX(hbox), gtk_theme_button, FALSE, FALSE, 0); | 208 gtk_box_pack_start(GTK_BOX(hbox), gtk_theme_button, FALSE, FALSE, 0); |
| 209 #endif | 209 #endif |
| 210 | 210 |
| 211 // Reset theme button. | 211 // Reset theme button. |
| 212 GtkWidget* themes_reset_button = gtk_button_new_with_label( | 212 GtkWidget* themes_reset_button = gtk_button_new_with_label( |
| 213 l10n_util::GetStringUTF8(IDS_THEMES_RESET_BUTTON).c_str()); | 213 l10n_util::GetStringUTF8(IDS_THEMES_SET_CLASSIC).c_str()); |
| 214 g_signal_connect(G_OBJECT(themes_reset_button), "clicked", | 214 g_signal_connect(G_OBJECT(themes_reset_button), "clicked", |
| 215 G_CALLBACK(OnResetDefaultThemeButtonClicked), this); | 215 G_CALLBACK(OnResetDefaultThemeButtonClicked), this); |
| 216 gtk_box_pack_start(GTK_BOX(hbox), themes_reset_button, FALSE, FALSE, 0); | 216 gtk_box_pack_start(GTK_BOX(hbox), themes_reset_button, FALSE, FALSE, 0); |
| 217 | 217 |
| 218 // Get themes button. | 218 // Get themes button. |
| 219 GtkWidget* themes_gallery_button = gtk_chrome_link_button_new( | 219 GtkWidget* themes_gallery_button = gtk_chrome_link_button_new( |
| 220 l10n_util::GetStringUTF8(IDS_THEMES_GALLERY_BUTTON).c_str()); | 220 l10n_util::GetStringUTF8(IDS_THEMES_GALLERY_BUTTON).c_str()); |
| 221 g_signal_connect(G_OBJECT(themes_gallery_button), "clicked", | 221 g_signal_connect(G_OBJECT(themes_gallery_button), "clicked", |
| 222 G_CALLBACK(OnGetThemesButtonClicked), this); | 222 G_CALLBACK(OnGetThemesButtonClicked), this); |
| 223 gtk_box_pack_start(GTK_BOX(hbox), themes_gallery_button, FALSE, FALSE, 0); | 223 gtk_box_pack_start(GTK_BOX(hbox), themes_gallery_button, FALSE, FALSE, 0); |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 GTK_TOGGLE_BUTTON(page->form_autofill_asktosave_radio_)); | 323 GTK_TOGGLE_BUTTON(page->form_autofill_asktosave_radio_)); |
| 324 if (enabled) { | 324 if (enabled) { |
| 325 page->UserMetricsRecordAction(L"Options_FormAutofill_Enable", | 325 page->UserMetricsRecordAction(L"Options_FormAutofill_Enable", |
| 326 page->profile()->GetPrefs()); | 326 page->profile()->GetPrefs()); |
| 327 } else { | 327 } else { |
| 328 page->UserMetricsRecordAction(L"Options_FormAutofill_Disable", | 328 page->UserMetricsRecordAction(L"Options_FormAutofill_Disable", |
| 329 page->profile()->GetPrefs()); | 329 page->profile()->GetPrefs()); |
| 330 } | 330 } |
| 331 page->ask_to_save_form_autofill_.SetValue(enabled); | 331 page->ask_to_save_form_autofill_.SetValue(enabled); |
| 332 } | 332 } |
| OLD | NEW |