GNOME Bugzilla – Bug 765590
[PATCH] Add a style class to the main window
Last modified: 2016-05-08 09:08:42 UTC
Created attachment 326744 [details] [review] Add a style class to the main window This patch adds a "gnome-terminal-window" style context to the main terminal window, which allows third party themes to implement custom styling for terminal windows. This was possible prior to GTK 3.20, and was used by several themes, for example to style tabs differently: https://github.com/horst3180/vertex-theme/issues/173
Will this cause any problem for existing themes by not making their style apply anymore to the now renamed window ?
No, the terminal window didn't have it's own class previously that themes could use to style the terminal specifically. Also, if they don't override styling using this class then the default styles will be applied instead, the same as what happens without this patch.
Comment on attachment 326744 [details] [review] Add a style class to the main window Alright. Ok to push to master.
I don't have access to GNOME git. Would you be able to push it?
(I guess it should be cherry-picked to 3-20 too, what do you think Christian?)
Sure.
Comment on attachment 326744 [details] [review] Add a style class to the main window I'll go with another approach, using gtk_widget_class_set_css_name().
Fixed on master and 3-20.
That also works, thanks for fixing.