diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-22 23:43:59 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-22 23:43:59 +0000 |
commit | 5cd6129b7aa7171366134e0d84172f5f884c6d17 (patch) | |
tree | 59f03c586249e5068289663e167115b953262900 /chrome | |
parent | ae25f9f425e0e652e0d72edf6fb5d080d5760f3b (diff) | |
download | chromium_src-5cd6129b7aa7171366134e0d84172f5f884c6d17.zip chromium_src-5cd6129b7aa7171366134e0d84172f5f884c6d17.tar.gz chromium_src-5cd6129b7aa7171366134e0d84172f5f884c6d17.tar.bz2 |
GTK: in gtk theme mode, when a chrome button is showing a menu, make it look depressed.
BUG=21053
TEST=app menu
Review URL: http://codereview.chromium.org/328001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29837 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/gtk/gtk_chrome_button.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/gtk/gtk_chrome_button.cc b/chrome/browser/gtk/gtk_chrome_button.cc index 748cb13..ef3c75b 100644 --- a/chrome/browser/gtk/gtk_chrome_button.cc +++ b/chrome/browser/gtk/gtk_chrome_button.cc @@ -95,6 +95,9 @@ static gboolean gtk_chrome_button_expose(GtkWidget* widget, // rendering AND we're in either the prelight or active state so that we // get the button border for the current GTK theme drawn. if (paint_state == GTK_STATE_PRELIGHT || paint_state == GTK_STATE_ACTIVE) { + // Set the state of button->depressed so we paint pressed even if the + // actual state of the button is something else. + GTK_BUTTON(widget)->depressed = (paint_state == GTK_STATE_ACTIVE); return GTK_WIDGET_CLASS(gtk_chrome_button_parent_class)->expose_event (widget, event); } |