Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1909)

Unified Diff: chrome/browser/gtk/browser_window_gtk.cc

Issue 39158: Take two at hooking up title bar on linux. (Closed)
Patch Set: rebase Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/browser_window_gtk.cc
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc
index bdfcb7e6d73a3a9df0ee213ae9b2c8a773d15552..038bf2e053747ec640af2e0ff055dfcb925f174d 100644
--- a/chrome/browser/gtk/browser_window_gtk.cc
+++ b/chrome/browser/gtk/browser_window_gtk.cc
@@ -232,7 +232,12 @@ void BrowserWindowGtk::SelectedTabToolbarSizeChanged(bool is_animating) {
}
void BrowserWindowGtk::UpdateTitleBar() {
- NOTIMPLEMENTED();
+ std::wstring title = browser_->GetCurrentPageTitle();
+ gtk_window_set_title(window_, WideToUTF8(title).c_str());
+ if (browser_->SupportsWindowFeature(Browser::FEATURE_TITLEBAR)) {
+ // If we're showing a title bar, we should update the app icon.
+ NOTIMPLEMENTED();
+ }
}
void BrowserWindowGtk::UpdateLoadingAnimations(bool should_animate) {
« no previous file with comments | « chrome/browser/browser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698