Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
81487c2a
Commit
81487c2a
authored
15 years ago
by
Paul Guslisty
Browse files
Options
Downloads
Patches
Plain Diff
Fxed normal bug EXT - 4106 (Tabbed IM floater isn't highlighting labels when new IMs are received)
--HG-- branch : product-engine
parent
61609d93
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llimfloatercontainer.cpp
+16
-0
16 additions, 0 deletions
indra/newview/llimfloatercontainer.cpp
indra/newview/llimfloatercontainer.h
+3
-1
3 additions, 1 deletion
indra/newview/llimfloatercontainer.h
with
19 additions
and
1 deletion
indra/newview/llimfloatercontainer.cpp
+
16
−
0
View file @
81487c2a
...
@@ -52,6 +52,7 @@ LLIMFloaterContainer::~LLIMFloaterContainer(){}
...
@@ -52,6 +52,7 @@ LLIMFloaterContainer::~LLIMFloaterContainer(){}
BOOL
LLIMFloaterContainer
::
postBuild
()
BOOL
LLIMFloaterContainer
::
postBuild
()
{
{
LLIMModel
::
instance
().
mNewMsgSignal
.
connect
(
boost
::
bind
(
&
LLIMFloaterContainer
::
onNewMessageReceived
,
this
,
_1
));
// Do not call base postBuild to not connect to mCloseSignal to not close all floaters via Close button
// Do not call base postBuild to not connect to mCloseSignal to not close all floaters via Close button
// mTabContainer will be initialized in LLMultiFloater::addChild()
// mTabContainer will be initialized in LLMultiFloater::addChild()
return
TRUE
;
return
TRUE
;
...
@@ -162,6 +163,21 @@ void LLIMFloaterContainer::onCloseFloater(LLUUID id)
...
@@ -162,6 +163,21 @@ void LLIMFloaterContainer::onCloseFloater(LLUUID id)
{
{
LLAvatarPropertiesProcessor
::
instance
().
removeObserver
(
id
,
this
);
LLAvatarPropertiesProcessor
::
instance
().
removeObserver
(
id
,
this
);
LLGroupMgr
::
instance
().
removeObserver
(
id
,
this
);
LLGroupMgr
::
instance
().
removeObserver
(
id
,
this
);
}
void
LLIMFloaterContainer
::
onNewMessageReceived
(
const
LLSD
&
data
)
{
LLUUID
session_id
=
data
[
"from_id"
].
asUUID
();
LLFloater
*
floaterp
=
get_ptr_in_map
(
mSessions
,
session_id
);
LLFloater
*
current_floater
=
LLMultiFloater
::
getActiveFloater
();
if
(
floaterp
&&
current_floater
&&
floaterp
!=
current_floater
)
{
if
(
LLMultiFloater
::
isFloaterFlashing
(
floaterp
))
LLMultiFloater
::
setFloaterFlashing
(
floaterp
,
FALSE
);
LLMultiFloater
::
setFloaterFlashing
(
floaterp
,
TRUE
);
}
}
}
LLIMFloaterContainer
*
LLIMFloaterContainer
::
findInstance
()
LLIMFloaterContainer
*
LLIMFloaterContainer
::
findInstance
()
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llimfloatercontainer.h
+
3
−
1
View file @
81487c2a
...
@@ -66,10 +66,12 @@ class LLIMFloaterContainer : public LLMultiFloater, public LLAvatarPropertiesObs
...
@@ -66,10 +66,12 @@ class LLIMFloaterContainer : public LLMultiFloater, public LLAvatarPropertiesObs
static
LLIMFloaterContainer
*
getInstance
();
static
LLIMFloaterContainer
*
getInstance
();
private:
private:
typedef
std
::
map
<
LLUUID
,
LL
Panel
*>
avatarID_panel_map_t
;
typedef
std
::
map
<
LLUUID
,
LL
Floater
*>
avatarID_panel_map_t
;
avatarID_panel_map_t
mSessions
;
avatarID_panel_map_t
mSessions
;
void
onCloseFloater
(
LLUUID
avatar_id
);
void
onCloseFloater
(
LLUUID
avatar_id
);
void
onNewMessageReceived
(
const
LLSD
&
data
);
};
};
#endif // LL_LLIMFLOATERCONTAINER_H
#endif // LL_LLIMFLOATERCONTAINER_H
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment