diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-30 03:18:17 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-30 03:18:17 +0000 |
commit | d35d5c76b7d09200bab91116ac19ce2c40adcb18 (patch) | |
tree | 491cfc25102c4e2bc5cf6ccc56ef256db7a7af34 | |
parent | e2de435d8b18a8cd94dc9c99e1e3b4f32395bdb9 (diff) | |
download | chromium_src-d35d5c76b7d09200bab91116ac19ce2c40adcb18.zip chromium_src-d35d5c76b7d09200bab91116ac19ce2c40adcb18.tar.gz chromium_src-d35d5c76b7d09200bab91116ac19ce2c40adcb18.tar.bz2 |
gtk: Schedule a paint operation for the previously selected tab when selecting a new tab.
BUG=20583
TEST=Open a browser with two tabs. Select the unselected tab. The now-unselected tab should be rendered as unselected.
Review URL: http://codereview.chromium.org/182025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24863 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/gtk/tabs/tab_strip_gtk.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/gtk/tabs/tab_strip_gtk.cc b/chrome/browser/gtk/tabs/tab_strip_gtk.cc index 285608c..8d243ba 100644 --- a/chrome/browser/gtk/tabs/tab_strip_gtk.cc +++ b/chrome/browser/gtk/tabs/tab_strip_gtk.cc @@ -982,6 +982,10 @@ void TabStripGtk::TabSelectedAt(TabContents* old_contents, bool tiny_tabs = current_unselected_width_ != current_selected_width_; if (!IsAnimating() && (!resize_layout_scheduled_ || tiny_tabs)) Layout(); + + int old_index = model_->GetIndexOfTabContents(old_contents); + if (old_index >= 0) + GetTabAt(old_index)->SchedulePaint(); } } |