summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-28 20:41:17 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-28 20:41:17 +0000
commit2e6707f57abfe9a98bf5d9c931defc2efd12e483 (patch)
treebedfdf48d3659b809bcb322f0dba0f356b381955 /chrome/browser/gtk
parentfb48b6ef0bda9be8103fe6080837f488e219b89a (diff)
downloadchromium_src-2e6707f57abfe9a98bf5d9c931defc2efd12e483.zip
chromium_src-2e6707f57abfe9a98bf5d9c931defc2efd12e483.tar.gz
chromium_src-2e6707f57abfe9a98bf5d9c931defc2efd12e483.tar.bz2
linux: extra shadow in prefs dialog
When we use gtk_scrolled_window_add_with_viewport, it sets its own shadow. BUG=16913 Review URL: http://codereview.chromium.org/159535 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21884 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r--chrome/browser/gtk/options/advanced_page_gtk.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/gtk/options/advanced_page_gtk.cc b/chrome/browser/gtk/options/advanced_page_gtk.cc
index 65a93ad..517669a 100644
--- a/chrome/browser/gtk/options/advanced_page_gtk.cc
+++ b/chrome/browser/gtk/options/advanced_page_gtk.cc
@@ -29,8 +29,9 @@ void AdvancedPageGtk::Init() {
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scroll_window),
GTK_POLICY_NEVER,
GTK_POLICY_AUTOMATIC);
- gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scroll_window),
- GTK_SHADOW_ETCHED_IN);
+ // Note that typically we call gtk_scrolled_window_set_shadow_type right
+ // here, but the add_with_viewport method of GtkScrolledWindow already adds
+ // its own shadow.
gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scroll_window),
advanced_contents_.get_page_widget());