diff options
author | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-07 22:42:53 +0000 |
---|---|---|
committer | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-07 22:42:53 +0000 |
commit | 1056b6caefdc122e512becdc65c44b9f9574f3a7 (patch) | |
tree | 49b66d7562d9fd0ee226f86461f6a1f84b7e3e67 /chrome/browser/gtk/options | |
parent | 46773166fdfb7bcfecad9bb84050ba0745955708 (diff) | |
download | chromium_src-1056b6caefdc122e512becdc65c44b9f9574f3a7.zip chromium_src-1056b6caefdc122e512becdc65c44b9f9574f3a7.tar.gz chromium_src-1056b6caefdc122e512becdc65c44b9f9574f3a7.tar.bz2 |
Put CustomizeSyncWindowGtk in NativeDialogHost for ChromeOS.
BUG=none
TEST=Verify that "Customize" button on "Personal Stuff" options page brings you the dialog with a Chrome window frame and not occupy the full screen.
Review URL: http://codereview.chromium.org/2043005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46746 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/options')
-rw-r--r-- | chrome/browser/gtk/options/customize_sync_window_gtk.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/gtk/options/customize_sync_window_gtk.cc b/chrome/browser/gtk/options/customize_sync_window_gtk.cc index 65f3ff5..2ef5621 100644 --- a/chrome/browser/gtk/options/customize_sync_window_gtk.cc +++ b/chrome/browser/gtk/options/customize_sync_window_gtk.cc @@ -153,7 +153,7 @@ CustomizeSyncWindowGtk::CustomizeSyncWindowGtk(Profile* profile) g_signal_connect(dialog_, "response", G_CALLBACK(OnResponse), this); g_signal_connect(dialog_, "destroy", G_CALLBACK(OnWindowDestroy), this); - gtk_widget_show_all(dialog_); + gtk_util::ShowDialog(dialog_); } CustomizeSyncWindowGtk::~CustomizeSyncWindowGtk() { @@ -162,7 +162,7 @@ CustomizeSyncWindowGtk::~CustomizeSyncWindowGtk() { void CustomizeSyncWindowGtk::Show() { // Bring options window to front if it already existed and isn't already // in front - gtk_window_present(GTK_WINDOW(dialog_)); + gtk_util::PresentWindow(dialog_, 0); } bool CustomizeSyncWindowGtk::ClickOk() { @@ -181,7 +181,7 @@ bool CustomizeSyncWindowGtk::ClickOk() { } else { // show the user that something's wrong with this dialog (not perfect, but // a temporary fix) - gtk_window_present(GTK_WINDOW(dialog_)); + gtk_util::PresentWindow(dialog_, 0); return false; } } |