Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
db7af2b2
Commit
db7af2b2
authored
11 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
test focus
parent
342c1969
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Fltk/FlGui.cpp
+0
-1
0 additions, 1 deletion
Fltk/FlGui.cpp
Fltk/onelabGroup.cpp
+4
-2
4 additions, 2 deletions
Fltk/onelabGroup.cpp
with
4 additions
and
3 deletions
Fltk/FlGui.cpp
+
0
−
1
View file @
db7af2b2
...
...
@@ -314,7 +314,6 @@ FlGui::FlGui(int argc, char **argv)
// graphic window should have the initial focus (so we can e.g. directly loop
// through time steps with the keyboard)
//graph[0]->gl[0]->take_focus();
Fl
::
focus
(
graph
[
0
]
->
gl
[
0
]);
// get onelab tree group (FIXME: should clean this up)
...
...
This diff is collapsed.
Click to expand it.
Fltk/onelabGroup.cpp
+
4
−
2
View file @
db7af2b2
...
...
@@ -1573,8 +1573,10 @@ void onelabGroup::rebuildTree(bool deleteWidgets)
delStrings
=
_treeStrings
;
_treeWidgets
.
clear
();
_treeStrings
.
clear
();
// make sure we remove the focus from any widget that will be deleted
_tree
->
take_focus
();
// make sure we remove the focus from any widget that will be deleted; not
// sure if this is still necessary; if it is, we should only do it if the
// focus is not in the graphical window:
// _tree->take_focus();
}
_addGmshMenus
();
...
...
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