diff options
author | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-28 00:00:49 +0000 |
---|---|---|
committer | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-28 00:00:49 +0000 |
commit | 403c148688f2c23d2c9b56fff236f4ddfe03377c (patch) | |
tree | 158a19de69c72631de04a195600b76a072095040 /chrome/browser/gtk | |
parent | dabdb68e738bf1a9f0ae51e59c188d0ab784f106 (diff) | |
download | chromium_src-403c148688f2c23d2c9b56fff236f4ddfe03377c.zip chromium_src-403c148688f2c23d2c9b56fff236f4ddfe03377c.tar.gz chromium_src-403c148688f2c23d2c9b56fff236f4ddfe03377c.tar.bz2 |
GTK: Activate window when "Get themes" button is clicked.
This is a direct copy of the Views fix from r29949.
BUG=24866
TESTED=verified that minimized browser window gets restored under metacity
Review URL: http://codereview.chromium.org/334048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30286 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r-- | chrome/browser/gtk/options/content_page_gtk.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/gtk/options/content_page_gtk.cc b/chrome/browser/gtk/options/content_page_gtk.cc index 98fa532..3782605 100644 --- a/chrome/browser/gtk/options/content_page_gtk.cc +++ b/chrome/browser/gtk/options/content_page_gtk.cc @@ -7,7 +7,9 @@ #include "app/gfx/gtk_util.h" #include "app/l10n_util.h" #include "app/resource_bundle.h" +#include "chrome/browser/browser.h" #include "chrome/browser/browser_list.h" +#include "chrome/browser/browser_window.h" #include "chrome/browser/defaults.h" #include "chrome/browser/gtk/clear_browsing_data_dialog_gtk.h" #include "chrome/browser/gtk/gtk_chrome_link_button.h" @@ -309,9 +311,7 @@ void ContentPageGtk::OnGetThemesButtonClicked(GtkButton* widget, ContentPageGtk* page) { page->UserMetricsRecordAction(L"Options_ThemesGallery", page->profile()->GetPrefs()); - BrowserList::GetLastActive()->OpenURL( - GURL(l10n_util::GetStringUTF8(IDS_THEMES_GALLERY_URL)), - GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK); + BrowserList::GetLastActive()->OpenThemeGalleryTabAndActivate(); } // static |