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

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

Issue 182004: GTK Themes: Refresh the entire location bar area on Update(). (Closed)
Patch Set: Doing it a different way. Created 11 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/location_bar_view_gtk.cc
diff --git a/chrome/browser/gtk/location_bar_view_gtk.cc b/chrome/browser/gtk/location_bar_view_gtk.cc
index df065974f96e9a829bf199080d4cc0f80c62ba8f..60e9ea89c298ae4ee061c2712655840a4661b8e7 100644
--- a/chrome/browser/gtk/location_bar_view_gtk.cc
+++ b/chrome/browser/gtk/location_bar_view_gtk.cc
@@ -268,7 +268,13 @@ void LocationBarViewGtk::Update(const TabContents* contents) {
SetInfoText();
location_entry_->Update(contents);
// The security level (background color) could have changed, etc.
- gtk_widget_queue_draw(hbox_.get());
+ if (theme_provider_->UseGtkTheme()) {
+ // In GTK mode, we need our parent to redraw, as it draws the text entry
+ // border.
+ gtk_widget_queue_draw(widget()->parent);
+ } else {
+ gtk_widget_queue_draw(widget());
+ }
}
void LocationBarViewGtk::OnAutocompleteAccept(const GURL& url,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698