I've noticed that when I run a wxWidgets application under Gnome 3, the name that's displayed in the top bar is the name of the executable with the first letter capitalized. Is it possible to set it to a more user-friendly string? I tried calling both wxApp::SetAppName() and wxApp::SetAppDisplayName() with no effect.
I'm using wxWidgets 3.1.0 on Ubuntu 17.10 with GCC version 7.2.0.
Set application title under Gnome 3
-
- Experienced Solver
- Posts: 74
- Joined: Sat May 06, 2017 1:40 pm
Re: Set application title under Gnome 3
Hi,
This application has a frame, right?
Thank you.
This application has a frame, right?
Thank you.
-
- Experienced Solver
- Posts: 74
- Joined: Sat May 06, 2017 1:40 pm
Re: Set application title under Gnome 3
The application has a frame. You can look at the code on GitHub if you want.
https://github.com/fishnet37222/mymusiccollection
https://github.com/fishnet37222/mymusiccollection
Dave F.
Re: Set application title under Gnome 3
Hi,
So why not use SetTitle() on the frame?
Or just check documentation on how to set the title properly?
Thank you.
So why not use SetTitle() on the frame?
Or just check documentation on how to set the title properly?
Thank you.
-
- Experienced Solver
- Posts: 74
- Joined: Sat May 06, 2017 1:40 pm
Re: Set application title under Gnome 3
I'm passing the title for the window in the constructor as in the following line.
That sets the title for the window without any issues. However, the title displayed in the Gnome 3 top bar still shows the name of the executable. This is the bar that runs across the top of the screen in Gnome 3, not the title bar of the window.
Code: Select all
MainWindow::MainWindow() : wxFrame(nullptr, wxID_ANY, "My Music Collection")
Dave F.
Re: Set application title under Gnome 3
Hi,
Is this what you are looking for?
Just try calling gtk_window_set_wmclass() and if it changes see if there is a wxWidgets call that does it.
If not - you can make a patch implementing it and submit it to trac.wxwidgets.org. You will have to register and be approved once.
Thank you.
Is this what you are looking for?
Just try calling gtk_window_set_wmclass() and if it changes see if there is a wxWidgets call that does it.
If not - you can make a patch implementing it and submit it to trac.wxwidgets.org. You will have to register and be approved once.
Thank you.