[haiku-commits] r37974 - haiku/trunk/src/kits/tracker

  • From: alex@xxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 8 Aug 2010 16:37:06 +0200 (CEST)

Author: aldeck
Date: 2010-08-08 16:37:06 +0200 (Sun, 08 Aug 2010)
New Revision: 37974
Changeset: http://dev.haiku-os.org/changeset/37974

Modified:
   haiku/trunk/src/kits/tracker/ContainerWindow.cpp
   haiku/trunk/src/kits/tracker/VolumeWindow.cpp
Log:
* Apply patch by Takashi Murai, find menu items by message code instead of item 
name (correcting previous patch)
  I've found more occurences but i will solve it differently since they are 
about finding messageless submenus.
  Thanks!


Modified: haiku/trunk/src/kits/tracker/ContainerWindow.cpp
===================================================================
--- haiku/trunk/src/kits/tracker/ContainerWindow.cpp    2010-08-08 12:48:19 UTC 
(rev 37973)
+++ haiku/trunk/src/kits/tracker/ContainerWindow.cpp    2010-08-08 14:37:06 UTC 
(rev 37974)
@@ -2195,7 +2195,7 @@
        bool poseViewIsQuery = TargetModel()->IsQuery();
                // if the view is a query pose view, add edit query menu item
 
-       BMenuItem* item = menu->FindItem(B_TRANSLATE("Edit query"));
+       BMenuItem* item = menu->FindItem(kEditQuery);
        if (!poseViewIsQuery && !queryInSelection && item)
                item->Menu()->RemoveItem(item);
 
@@ -3024,7 +3024,7 @@
 
        if (context == kMenuBarContext || context == kWindowPopUpContext) {
                BMenu* sizeMenu = NULL;
-               if (BMenuItem* item = menu->FindItem(B_TRANSLATE("Icon view"))) 
{
+               if (BMenuItem* item = menu->FindItem(kIconMode)) {
                        sizeMenu = item->Submenu();
                }
 

Modified: haiku/trunk/src/kits/tracker/VolumeWindow.cpp
===================================================================
--- haiku/trunk/src/kits/tracker/VolumeWindow.cpp       2010-08-08 12:48:19 UTC 
(rev 37973)
+++ haiku/trunk/src/kits/tracker/VolumeWindow.cpp       2010-08-08 14:37:06 UTC 
(rev 37974)
@@ -85,7 +85,7 @@
                }
        }
 
-       BMenuItem* item = fMenuBar->FindItem(B_TRANSLATE("Unmount"));
+       BMenuItem* item = fMenuBar->FindItem(kUnmountVolume);
        if (item)
                item->SetEnabled(ejectableVolumeSelected);
 }


Other related posts:

  • » [haiku-commits] r37974 - haiku/trunk/src/kits/tracker - alex