[interfacekit] Small menu patch
- From: Denis Washington <dwashington@xxxxxxx>
- To: interfacekit@xxxxxxxxxxxxx, openbeos@xxxxxxxxxxxxx
- Date: Sat, 16 Feb 2008 13:43:33 +0100
Hi,
I looked into the Haiku project and find it pretty promising. As I
wanted to help out, I fixed one of the first small issues I encountered
when trying the OS.
The attached patch improves menu browsing. Currently, when you open a
menu in the menu bar and don't find the feature you are looking for
there, you cannot move the mouse to the next menu to make it appear;
instead, you have to explicitly click on the menu. The patch fixes this
- with it, you can just move your mouse cursor left and right on the
menu bar to browse through it's menus, similar to other operating
systems. It is really just a one-liner.
I hope I could help you with this small contribution. ;)
Regards,
Denis
Index: src/kits/interface/MenuBar.cpp
===================================================================
--- src/kits/interface/MenuBar.cpp (revision 23958)
+++ src/kits/interface/MenuBar.cpp (working copy)
@@ -477,7 +477,7 @@
// - nonsticky mode and different selection,
// - clicked in sticky mode
if (fSelected == NULL
- || (!_IsStickyMode() && menuItem != fSelected)
+ || menuItem != fSelected
|| (buttons != 0 && _IsStickyMode())) {
if (menuItem->Submenu() != NULL) {
if (menuItem->Submenu()->Window() ==
NULL) {
- Follow-Ups:
- [interfacekit] Re: Small menu patch
- From: Stephan Assmus
Other related posts:
- » [interfacekit] Small menu patch
- » [interfacekit] Re: Small menu patch
- » [interfacekit] Re: Small menu patch
- » [interfacekit] Re: Small menu patch
- » [interfacekit] Re: Small menu patch
- » [interfacekit] Re: Small menu patch
- » [interfacekit] Re: Small menu patch
- » [interfacekit] Re: Small menu patch
- » [interfacekit] Re: Small menu patch
- [interfacekit] Re: Small menu patch
- From: Stephan Assmus