diff options
Diffstat (limited to 'chrome/browser/gtk/location_bar_view_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/location_bar_view_gtk.cc | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/chrome/browser/gtk/location_bar_view_gtk.cc b/chrome/browser/gtk/location_bar_view_gtk.cc index 211f997..503a476 100644 --- a/chrome/browser/gtk/location_bar_view_gtk.cc +++ b/chrome/browser/gtk/location_bar_view_gtk.cc @@ -389,19 +389,23 @@ gboolean LocationBarViewGtk::HandleExpose(GtkWidget* widget, // window, set a clip to make sure that we don't draw outside. gdk_gc_set_clip_rectangle(gc, &inner_rect); - // Draw our 1px border. TODO(deanm): Maybe this would be cleaner as an - // overdrawn stroked rect with a clip to the allocation? - gdk_gc_set_rgb_fg_color(gc, &kBorderColor); - gdk_draw_rectangle(drawable, gc, TRUE, - inner_rect.x, - inner_rect.y, - inner_rect.width, - kBorderThickness); - gdk_draw_rectangle(drawable, gc, TRUE, - inner_rect.x, - inner_rect.y + inner_rect.height - kBorderThickness, - inner_rect.width, - kBorderThickness); + // If we're not using GTK theming, draw our own border. + if (!profile_ || + !GtkThemeProvider::GetFrom(profile_)->UseGtkTheme()) { + // Draw our 1px border. TODO(deanm): Maybe this would be cleaner as an + // overdrawn stroked rect with a clip to the allocation? + gdk_gc_set_rgb_fg_color(gc, &kBorderColor); + gdk_draw_rectangle(drawable, gc, TRUE, + inner_rect.x, + inner_rect.y, + inner_rect.width, + kBorderThickness); + gdk_draw_rectangle(drawable, gc, TRUE, + inner_rect.x, + inner_rect.y + inner_rect.height - kBorderThickness, + inner_rect.width, + kBorderThickness); + } // Draw the background within the border. gdk_gc_set_rgb_fg_color(gc, |