[haiku-bugs] [Haiku] #13138: BInputServerMethod::SetMenu doesn't work

  • From: "jalopeura" <trac@xxxxxxxxxxxx>
  • Date: Sat, 31 Dec 2016 00:27:46 -0000

#13138: BInputServerMethod::SetMenu doesn't work
----------------------------------+------------------------------
 Reporter:  jalopeura             |        Owner:  nobody
     Type:  bug                   |       Status:  new
 Priority:  normal                |    Milestone:  Unscheduled
Component:  Servers/input_server  |      Version:  R1/Development
 Keywords:                        |   Blocked By:
 Blocking:                        |  Has a Patch:  0
 Platform:  All                   |
----------------------------------+------------------------------
 BInputServerMethod::SetMenu doesn't actually add a submenu to the item in
 the input server menu. The problem seems to be in _BMethodAddOn_::SetMenu:

         if (menu)
                 menu->Archive(&menuMsg);

 should be

         if (menu)
                 menu->Archive(&menuMsg, true);

 Without that second argument, the menu items are not included.

 (I have been unable to test this, since PM won't let me simply overwrite
 the input server with my newly compiled version; I'm going to have to
 build an entire system and install it to a partition.

 I will attach a patch, but if nobody else gets to this, I will try to find
 time to build an entire installation to test this.

--
Ticket URL: <https://dev.haiku-os.org/ticket/13138>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: