diff options
author | McCabe Maxsted | 2009-11-08 10:21:08 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-11-08 10:21:08 -0700 |
commit | 94a37a078d6f39ceca64c84267ed63e2bae306ba (patch) | |
tree | c562512bc7d12d9c827b12aa75961e68223b325c /linden/indra/llui | |
parent | Changed version to 1.20 in other files (diff) | |
download | meta-impy-94a37a078d6f39ceca64c84267ed63e2bae306ba.zip meta-impy-94a37a078d6f39ceca64c84267ed63e2bae306ba.tar.gz meta-impy-94a37a078d6f39ceca64c84267ed63e2bae306ba.tar.bz2 meta-impy-94a37a078d6f39ceca64c84267ed63e2bae306ba.tar.xz |
Attempted to make the Advanced shortcut play nice with Linux in XUI
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/llmenugl.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/linden/indra/llui/llmenugl.cpp b/linden/indra/llui/llmenugl.cpp index 907777d..8411f41 100644 --- a/linden/indra/llui/llmenugl.cpp +++ b/linden/indra/llui/llmenugl.cpp | |||
@@ -1829,6 +1829,16 @@ void LLMenuGL::parseChildXML(LLXMLNodePtr child, LLView *parent, LLUICtrlFactory | |||
1829 | 1829 | ||
1830 | std::string shortcut; | 1830 | std::string shortcut; |
1831 | child->getAttributeString("shortcut", shortcut); | 1831 | child->getAttributeString("shortcut", shortcut); |
1832 | |||
1833 | #ifdef LL_LINUX | ||
1834 | // check for linux-specific shortcut | ||
1835 | std::string shortcut_linux; | ||
1836 | if (child->getAttributeString("shortcut_linux", shortcut_linux)) | ||
1837 | { | ||
1838 | shortcut = shortcut_linux; | ||
1839 | } | ||
1840 | #endif // LL_LINUX | ||
1841 | |||
1832 | if (shortcut.find("control") != shortcut.npos) | 1842 | if (shortcut.find("control") != shortcut.npos) |
1833 | { | 1843 | { |
1834 | #ifdef LL_DARWIN | 1844 | #ifdef LL_DARWIN |