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

Allow GLMakie to change the title of a screen after its creation. #4677

Merged
merged 5 commits into from
Jan 13, 2025

Conversation

lpaulino07
Copy link
Contributor

@lpaulino07 lpaulino07 commented Dec 17, 2024

Description

Fixes #4665

Previously, GLFW.SetWindowTitle() was needed, which required adding the GLFW package to the script. This change just wraps GLFW.SetWindowTitle() into GLMakie.set_screen_title!(), and modifies screen.config.title to store the new title.

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • Added an entry in CHANGELOG.md (for new features and breaking changes)

…ieOrg#4677)

Previously, GLFW.SetWindowTitle() was needed, which required adding the GLFW package to the script. This change just wraps GLFW.SetWindowTitle() into GLMakie.set_screen_title!().
@SimonDanisch
Copy link
Member

I took the freedom to rename it to set_title!... I did just notice, that it's also called set_screen_visibility!... Maybe that needs to get renamed too, but is rather an internal function in any case.
Anyways, I think the screen in func(::Screen) is redundant, so I prefer this name.

@SimonDanisch SimonDanisch merged commit 784d7aa into MakieOrg:master Jan 13, 2025
@SimonDanisch
Copy link
Member

Thank you!

@lpaulino07 lpaulino07 deleted the set-glscreen-title branch January 17, 2025 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

Allow changing window title after creation through GLMakie
2 participants