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

Unified Diff: views/controls/button/custom_button.cc

Issue 199025: Fix some gcc 4.4 issues when compiling with toolkit_views. (Closed)
Patch Set: Remove CreateFindBar, use COMPILER_GCC and add comments. Created 11 years, 3 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 | « chrome/chrome.gyp ('k') | views/widget/drop_target_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/button/custom_button.cc
diff --git a/views/controls/button/custom_button.cc b/views/controls/button/custom_button.cc
index 69ac8401d548752c462b28ee18ea530f732117eb..f9a58f639d20e2d0171d82055d4dd3395121ceee 100644
--- a/views/controls/button/custom_button.cc
+++ b/views/controls/button/custom_button.cc
@@ -96,8 +96,8 @@ bool CustomButton::AcceleratorPressed(const Accelerator& accelerator) {
memset(&gdk_key, 0, sizeof(GdkEventKey));
gdk_key.type = GDK_KEY_RELEASE;
gdk_key.keyval = accelerator.GetKeyCode();
- gdk_key.state = accelerator.IsAltDown() << 3 +
- accelerator.IsCtrlDown() << 2 +
+ gdk_key.state = (accelerator.IsAltDown() << 3) +
+ (accelerator.IsCtrlDown() << 2) +
accelerator.IsShiftDown();
KeyEvent key_event(&gdk_key, false);
#endif
« no previous file with comments | « chrome/chrome.gyp ('k') | views/widget/drop_target_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698