Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an issue with the canvas editor when the canvas is embedded #12477

Merged
merged 9 commits into from Mar 15, 2023

Conversation

bellenot
Copy link
Member

Fix a problem with the editor not appearing when the TCanvas is embedded, as reported on the Forum

Fix a problem with the editor not appearing when the TCanvas is embedded, [as reported on the Forum](https://root-forum.cern.ch/t/editor-not-appearing-in-gui-canvas/53968)
@bellenot bellenot self-assigned this Mar 10, 2023
@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac12/noimt, mac11/cxx14, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac12/noimt, mac11/cxx14, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac12/noimt, mac11/cxx14, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac12/noimt, mac11/cxx14, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac12/noimt, mac11/cxx14, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac12/noimt, mac11/cxx14, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-debian10-i386/soversion.
Running on pcepsft10.dyndns.cern.ch:/build/workspace/root-pullrequests-build
See console output.

Warnings:

  • [2023-03-10T23:27:54.185Z] /home/sftnight/build/workspace/root-pullrequests-build/root/gui/gui/src/TRootCanvas.cxx:1476:44: warning: declaration of ‘Bool_t show’ shadows a parameter [-Wshadow]

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-ubuntu18.04/nortcxxmod.
Running on sft-ubuntu-1804-2.cern.ch:/build/workspace/root-pullrequests-build
See console output.

Warnings:

  • [2023-03-10T23:24:13.834Z] /mnt/build/workspace/root-pullrequests-build/root/gui/gui/src/TRootCanvas.cxx:1476:44: warning: declaration of ‘Bool_t show’ shadows a parameter [-Wshadow]

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-performance-centos8-multicore/cxx17.
Running on olbdw-01.cern.ch:/data/sftnight/workspace/root-pullrequests-build
See console output.

Warnings:

  • [2023-03-10T23:33:05.060Z] /data/sftnight/workspace/root-pullrequests-build/root/gui/gui/src/TRootCanvas.cxx:1476:44: warning: declaration of ‘Bool_t show’ shadows a parameter [-Wshadow]

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-ubuntu2004/python3.
Running on root-ubuntu-2004-1.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Warnings:

  • [2023-03-10T23:25:20.105Z] /home/sftnight/build/workspace/root-pullrequests-build/root/gui/gui/src/TRootCanvas.cxx:1476:44: warning: declaration of ‘Bool_t show’ shadows a parameter [-Wshadow]

Fix `TRootCanvas.cxx:1476:44: warning: declaration of �Bool_t show� shadows a parameter [-Wshadow]`
@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac12/noimt, mac11/cxx14, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Collaborator

Build failed on mac12/noimt.
Running on macphsft17.dyndns.cern.ch:/Users/sftnight/build/jenkins/workspace/root-pullrequests-build
See console output.

Failing tests:

@github-actions
Copy link

github-actions bot commented Mar 11, 2023

Test Results

       2 files         2 suites   14h 27m 27s ⏱️
2 415 tests 2 404 ✔️ 2 💤   9
4 832 runs  4 813 ✔️ 8 💤 11

For more details on these failures, see this check.

Results for commit eed1fab.

♻️ This comment has been updated with latest results.

@bellenot
Copy link
Member Author

@phsft-bot build

@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac12/noimt, mac11/cxx14, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Collaborator

Build failed on mac12/noimt.
Running on macphsft17.dyndns.cern.ch:/Users/sftnight/build/jenkins/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on mac11/cxx14.
Running on macphsft23.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@@ -1473,6 +1473,35 @@ void TRootCanvas::ShowEditor(Bool_t show)
UInt_t h = GetHeight();
UInt_t s = fHorizontal1->GetHeight();

auto lambda_show = [&, this](Bool_t display) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parameter is always == show, right? So why pass it as a parameter at all? Why not use it from the lambda?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes, you're right...

gui/gui/src/TRootCanvas.cxx Outdated Show resolved Hide resolved
Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch>
@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac12/noimt, mac11/cxx14, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac12/noimt, mac11/cxx14, windows10/cxx14
How to customize builds

@bellenot bellenot merged commit 77d0a99 into root-project:master Mar 15, 2023
6 of 8 checks passed
@bellenot bellenot deleted the fix-embedded-canvas-editor branch March 15, 2023 07:35
Axel-Naumann pushed a commit to Axel-Naumann/root that referenced this pull request Mar 17, 2023
…-project#12477)

* Fix an issue with the canvas editor when the canvas is embedded

Fix a problem with the editor not appearing when the TCanvas is embedded, [as reported on the Forum](https://root-forum.cern.ch/t/editor-not-appearing-in-gui-canvas/53968)

Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch>

* Cosmetics (thanks Axel!)

---------

Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch>
(cherry picked from commit 77d0a99)
Axel-Naumann pushed a commit to Axel-Naumann/root that referenced this pull request Mar 20, 2023
…-project#12477)

* Fix an issue with the canvas editor when the canvas is embedded

Fix a problem with the editor not appearing when the TCanvas is embedded, [as reported on the Forum](https://root-forum.cern.ch/t/editor-not-appearing-in-gui-canvas/53968)

Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch>

* Cosmetics (thanks Axel!)

---------

Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch>
(cherry picked from commit 77d0a99)
Axel-Naumann pushed a commit that referenced this pull request Mar 20, 2023
* Fix an issue with the canvas editor when the canvas is embedded

Fix a problem with the editor not appearing when the TCanvas is embedded, [as reported on the Forum](https://root-forum.cern.ch/t/editor-not-appearing-in-gui-canvas/53968)

Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch>

* Cosmetics (thanks Axel!)

---------

Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch>
(cherry picked from commit 77d0a99)
omazapa pushed a commit to omazapa/root that referenced this pull request Apr 13, 2023
…-project#12477)

* Fix an issue with the canvas editor when the canvas is embedded

Fix a problem with the editor not appearing when the TCanvas is embedded, [as reported on the Forum](https://root-forum.cern.ch/t/editor-not-appearing-in-gui-canvas/53968)

Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch>

* Cosmetics (thanks Axel!)

---------

Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants