I made an application using gtkmm and I compiled it on windows using MSYSv2. I know you can style the CSD to make it look like Windows. but there are several versions of windows with their own unique theme. Can we just let the Windows’ window manager to draw its native titlebar for us?
PS: I don’t care about the style of widgets I just want a native titlebar in Windows.
Regards.
lb90
August 28, 2022, 4:30pm
2
Yes, run the application with the environment variable GTK_CSD=0. To do that from the MSYS2 terminal emulator:
GTK_CSD=0 app-name
Or you can hardcode that in your application by setting the environment variable from your main function:
int main() {
g_setenv ("GTK_CSD", "0", FALSE);
/* ... */
}
I already did that. It does work but I can’t resize the window. also there is no resize and minimize button.
video
lb90
August 28, 2022, 6:33pm
4
Right. Could you open an issue in https://gitlab.gnome.org/GNOME/gtk/-/issues ? I can work on a fix for that
2 Likes
Thank you. here is bug report
1 Like
@lb90 Is there any plan to fix this?
ebassi
(Emmanuele Bassi)
September 13, 2022, 10:51am
7
There is a plan to fix all issues; whether or not there are enough resources to do so is another matter entirely.
Help is very much welcome.
1 Like
lb90
September 13, 2022, 1:02pm
8
Yes, I plan to work on that very soon
1 Like
lb90
October 7, 2022, 4:20pm
9
Hello, I have opened a Merge Request fixing that issue: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5096 . I plan to work on a few details and then merge it!
Luca
1 Like
system
(system)
Closed
November 6, 2022, 4:21pm
10
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.