diff options
author | McCabe Maxsted | 2010-04-18 16:29:29 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-04-18 16:29:29 -0700 |
commit | 03e2fda50400f1e71623484d5e6f12446f2c76b7 (patch) | |
tree | 868fc27675207bfaee7cdd172d981d5592e1752d /linden/indra/newview/llfloaterdirectory.cpp | |
parent | Fixed windows compile error introduced in ca315cbe (diff) | |
download | meta-impy-03e2fda50400f1e71623484d5e6f12446f2c76b7.zip meta-impy-03e2fda50400f1e71623484d5e6f12446f2c76b7.tar.gz meta-impy-03e2fda50400f1e71623484d5e6f12446f2c76b7.tar.bz2 meta-impy-03e2fda50400f1e71623484d5e6f12446f2c76b7.tar.xz |
Ported slviewer-0-v12300-ReinstateOldSearchTabs.patch from the Hippo Viewer (opensim currently uses the old search all)
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloaterdirectory.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/linden/indra/newview/llfloaterdirectory.cpp b/linden/indra/newview/llfloaterdirectory.cpp index 76cb26b..8018c31 100644 --- a/linden/indra/newview/llfloaterdirectory.cpp +++ b/linden/indra/newview/llfloaterdirectory.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2002-2009, Linden Research, Inc. | 7 | * Copyright (c) 2002-2010, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -93,6 +93,7 @@ LLFloaterDirectory::LLFloaterDirectory(const std::string& name) | |||
93 | // Build the floater with our tab panel classes | 93 | // Build the floater with our tab panel classes |
94 | 94 | ||
95 | LLCallbackMap::map_t factory_map; | 95 | LLCallbackMap::map_t factory_map; |
96 | factory_map["find_all_old_panel"] = LLCallbackMap(createFindAllOld, this); | ||
96 | factory_map["find_all_panel"] = LLCallbackMap(createFindAll, this); | 97 | factory_map["find_all_panel"] = LLCallbackMap(createFindAll, this); |
97 | factory_map["classified_panel"] = LLCallbackMap(createClassified, this); | 98 | factory_map["classified_panel"] = LLCallbackMap(createClassified, this); |
98 | factory_map["events_panel"] = LLCallbackMap(createEvents, this); | 99 | factory_map["events_panel"] = LLCallbackMap(createEvents, this); |
@@ -119,6 +120,7 @@ LLFloaterDirectory::LLFloaterDirectory(const std::string& name) | |||
119 | mPanelAvatarp->selectTab(0); | 120 | mPanelAvatarp->selectTab(0); |
120 | } | 121 | } |
121 | 122 | ||
123 | childSetTabChangeCallback("Directory Tabs", "find_all_old_panel", onTabChanged, this); | ||
122 | childSetTabChangeCallback("Directory Tabs", "find_all_panel", onTabChanged, this); | 124 | childSetTabChangeCallback("Directory Tabs", "find_all_panel", onTabChanged, this); |
123 | childSetTabChangeCallback("Directory Tabs", "classified_panel", onTabChanged, this); | 125 | childSetTabChangeCallback("Directory Tabs", "classified_panel", onTabChanged, this); |
124 | childSetTabChangeCallback("Directory Tabs", "events_panel", onTabChanged, this); | 126 | childSetTabChangeCallback("Directory Tabs", "events_panel", onTabChanged, this); |
@@ -206,7 +208,14 @@ void* LLFloaterDirectory::createPeople(void* userdata) | |||
206 | void* LLFloaterDirectory::createGroups(void* userdata) | 208 | void* LLFloaterDirectory::createGroups(void* userdata) |
207 | { | 209 | { |
208 | LLFloaterDirectory *self = (LLFloaterDirectory*)userdata; | 210 | LLFloaterDirectory *self = (LLFloaterDirectory*)userdata; |
209 | return new LLPanelDirGroups("people_groups", self); | 211 | return new LLPanelDirGroups("groups_panel", self); |
212 | } | ||
213 | |||
214 | // static | ||
215 | void *LLFloaterDirectory::createFindAllOld(void* userdata) | ||
216 | { | ||
217 | LLFloaterDirectory *self = (LLFloaterDirectory*)userdata; | ||
218 | return new LLPanelDirFindAllOld("find_all_old_panel", self); | ||
210 | } | 219 | } |
211 | 220 | ||
212 | // static | 221 | // static |