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
ce84d670
Commit
ce84d670
authored
14 years ago
by
Aimee Linden
Browse files
Options
Downloads
Patches
Plain Diff
STORM-253 FIXED FrontWindow() API is deprecated
parent
2f29c351
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llplugin/slplugin/slplugin.cpp
+6
-6
6 additions, 6 deletions
indra/llplugin/slplugin/slplugin.cpp
with
6 additions
and
6 deletions
indra/llplugin/slplugin/slplugin.cpp
+
6
−
6
View file @
ce84d670
...
@@ -281,7 +281,7 @@ int main(int argc, char **argv)
...
@@ -281,7 +281,7 @@ int main(int argc, char **argv)
}
}
// Check for a change in this process's frontmost window.
// Check for a change in this process's frontmost window.
if
(
FrontWindow
(
)
!=
front_window
)
if
(
Get
FrontWindow
OfClass
(
kAllWindowClasses
,
true
)
!=
front_window
)
{
{
ProcessSerialNumber
self
=
{
0
,
kCurrentProcess
};
ProcessSerialNumber
self
=
{
0
,
kCurrentProcess
};
ProcessSerialNumber
parent
=
{
0
,
kNoProcess
};
ProcessSerialNumber
parent
=
{
0
,
kNoProcess
};
...
@@ -307,7 +307,7 @@ int main(int argc, char **argv)
...
@@ -307,7 +307,7 @@ int main(int argc, char **argv)
}
}
}
}
if
((
FrontWindow
(
)
!=
NULL
)
&&
(
front_window
==
NULL
))
if
((
Get
FrontWindow
OfClass
(
kAllWindowClasses
,
true
)
!=
NULL
)
&&
(
front_window
==
NULL
))
{
{
// Opening the first window
// Opening the first window
...
@@ -319,7 +319,7 @@ int main(int argc, char **argv)
...
@@ -319,7 +319,7 @@ int main(int argc, char **argv)
if
(
layer_group
)
if
(
layer_group
)
{
{
SetWindowGroup
(
FrontWindow
(
),
layer_group
);
SetWindowGroup
(
Get
FrontWindow
OfClass
(
kAllWindowClasses
,
true
),
layer_group
);
}
}
if
(
parent_is_front_process
)
if
(
parent_is_front_process
)
...
@@ -328,9 +328,9 @@ int main(int argc, char **argv)
...
@@ -328,9 +328,9 @@ int main(int argc, char **argv)
(
void
)
SetFrontProcess
(
&
self
);
(
void
)
SetFrontProcess
(
&
self
);
}
}
ActivateWindow
(
FrontWindow
(
),
true
);
ActivateWindow
(
Get
FrontWindow
OfClass
(
kAllWindowClasses
,
true
),
true
);
}
}
else
if
((
FrontWindow
(
)
==
NULL
)
&&
(
front_window
!=
NULL
))
else
if
((
Get
FrontWindow
OfClass
(
kAllWindowClasses
,
true
)
==
NULL
)
&&
(
front_window
!=
NULL
))
{
{
// Closing the last window
// Closing the last window
...
@@ -350,7 +350,7 @@ int main(int argc, char **argv)
...
@@ -350,7 +350,7 @@ int main(int argc, char **argv)
window_hack_state
=
2
;
window_hack_state
=
2
;
}
}
front_window
=
FrontWindow
(
);
front_window
=
Get
FrontWindow
OfClass
(
kAllWindowClasses
,
true
);
}
}
}
}
...
...
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