aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-11-08 10:21:08 -0700
committerMcCabe Maxsted2009-11-08 10:21:08 -0700
commit94a37a078d6f39ceca64c84267ed63e2bae306ba (patch)
treec562512bc7d12d9c827b12aa75961e68223b325c
parentChanged version to 1.20 in other files (diff)
downloadmeta-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
-rw-r--r--ChangeLog.txt6
-rw-r--r--linden/indra/llui/llmenugl.cpp10
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml3
3 files changed, 18 insertions, 1 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index edb89a8..100adf6 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,5 +1,11 @@
12009-11-08 McCabe Maxsted <hakushakukun@gmail.com> 12009-11-08 McCabe Maxsted <hakushakukun@gmail.com>
2 2
3 * Attempted to make the Advanced shortcut play nice with Linux in XUI.
4
5 modified: linden/indra/llui/llmenugl.cpp
6 modified: linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
7
8
3 * Changed version to 1.20 in other files. 9 * Changed version to 1.20 in other files.
4 10
5 modified: linden/indra/newview/English.lproj/InfoPlist.strings 11 modified: linden/indra/newview/English.lproj/InfoPlist.strings
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
diff --git a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
index 459bf44..1b36bca 100644
--- a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
@@ -413,7 +413,8 @@
413 <menu_item_separator /> 413 <menu_item_separator />
414 <menu_item_check name="Toggle Advanced Menu" 414 <menu_item_check name="Toggle Advanced Menu"
415 label="Advanced Menu" 415 label="Advanced Menu"
416 shortcut="control|alt|D"> 416 shortcut="control|alt|D"
417 shortcut_linux="control|alt|shift|D">
417 <on_click function="View.ToggleAdvanced" userdata="" /> 418 <on_click function="View.ToggleAdvanced" userdata="" />
418 <on_check function="View.CheckAdvanced" /> 419 <on_check function="View.CheckAdvanced" />
419 </menu_item_check> 420 </menu_item_check>