From 6589c200199e1fe0d0bf5f610d990ae197108981 Mon Sep 17 00:00:00 2001 From: Paul Guslisty Date: Thu, 7 Oct 2010 13:46:50 +0300 Subject: STORM-263 FIXED Cog button in lower-left of sidebar panel does not close popup menu on second click - In all places of sidebar panel where gear menu button is used changed type of gear menu buttons from LLButton to LLMenuButton - Added setMenuPosition and setMenu to the LLMenuButton interface as public methods - In all sidebar panels where LLButton was replaced with LLMenuButton the algorithm of replacing is simple and the same for all sidebar panels. In general the algorithm is: 1. set gearMenu to the menuButton using LLMenuButton::setMenu 2. set mouse down callback for the menuButton 3. in callback for mouse down set the menu position where it should be shown using LLMenuButton::setMenuPosition --- indra/newview/skins/default/xui/en/panel_landmarks.xml | 2 +- indra/newview/skins/default/xui/en/panel_main_inventory.xml | 2 +- indra/newview/skins/default/xui/en/panel_outfit_edit.xml | 4 ++-- indra/newview/skins/default/xui/en/panel_outfits_list.xml | 2 +- indra/newview/skins/default/xui/en/panel_outfits_wearing.xml | 2 +- indra/newview/skins/default/xui/en/panel_people.xml | 9 ++++----- indra/newview/skins/default/xui/en/panel_teleport_history.xml | 2 +- 7 files changed, 11 insertions(+), 12 deletions(-) (limited to 'indra/newview/skins/default/xui/en') diff --git a/indra/newview/skins/default/xui/en/panel_landmarks.xml b/indra/newview/skins/default/xui/en/panel_landmarks.xml index 7e415f45a4..5106215835 100644 --- a/indra/newview/skins/default/xui/en/panel_landmarks.xml +++ b/indra/newview/skins/default/xui/en/panel_landmarks.xml @@ -115,7 +115,7 @@ layout="topleft" name="options_gear_btn_panel" width="32"> -