diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-28 21:23:18 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-28 21:23:18 +0000 |
commit | 31caf9184f97fc3a45eeac0d7fe869e261997e65 (patch) | |
tree | ac08dfc73e4ff037488c14107c17091d379fbfee /chrome/browser/gtk/options/options_window_gtk.cc | |
parent | ad05af6e6f231a8e4283e13c8f7652454c223cc1 (diff) | |
download | chromium_src-31caf9184f97fc3a45eeac0d7fe869e261997e65.zip chromium_src-31caf9184f97fc3a45eeac0d7fe869e261997e65.tar.gz chromium_src-31caf9184f97fc3a45eeac0d7fe869e261997e65.tar.bz2 |
Add general options page. Options are working with the following exceptions:
Custom start urls and default search options widgets aren't hooked up.
Home page settings work, but are overridden by the linux start page settings.
Default browser checking/setting functions are not implemented, so the option
isn't useful yet.
Refactors some common code out of browser/views/options/options_page_view.*
into browser/options_page_base.{cc,h}
BUG=11507
Patch by Matt Mueller (mattm@google.com).
Review URL: http://codereview.chromium.org/113967
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17115 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/options/options_window_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/options/options_window_gtk.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/gtk/options/options_window_gtk.cc b/chrome/browser/gtk/options/options_window_gtk.cc index 7fe8365..ea382d2 100644 --- a/chrome/browser/gtk/options/options_window_gtk.cc +++ b/chrome/browser/gtk/options/options_window_gtk.cc @@ -9,6 +9,7 @@ #include "app/l10n_util.h" #include "base/message_loop.h" #include "chrome/browser/browser_process.h" +#include "chrome/browser/gtk/options/general_page_gtk.h" #include "chrome/browser/profile.h" #include "chrome/common/pref_member.h" #include "chrome/common/pref_names.h" @@ -54,6 +55,9 @@ class OptionsWindowGtk { // The Profile associated with these options. Profile* profile_; + // The options pages + GeneralPageGtk general_page_; + // The last page the user was on when they opened the Options window. IntegerPrefMember last_selected_page_; @@ -69,7 +73,7 @@ OptionsWindowGtk::OptionsWindowGtk(Profile* profile) // Always show preferences for the original profile. Most state when off // the record comes from the original profile, but we explicitly use // the original profile to avoid potential problems. - : profile_(profile->GetOriginalProfile()) { + : profile_(profile->GetOriginalProfile()), general_page_(profile_) { // The download manager needs to be initialized before the contents of the // Options Window are created. profile_->GetDownloadManager(); @@ -93,7 +97,7 @@ OptionsWindowGtk::OptionsWindowGtk(Profile* profile) gtk_notebook_append_page( GTK_NOTEBOOK(notebook_), - gtk_label_new("TODO general"), + general_page_.get_page_widget(), gtk_label_new( l10n_util::GetStringUTF8(IDS_OPTIONS_GENERAL_TAB_LABEL).c_str())); |