aboutdialog: Set a style class

Add the .aboutdialog style class to toplevel
widget of about dialogs, similar to what we
do for e.g. GtkAssistant.
This commit is contained in:
Matthias Clasen 2021-01-11 16:48:06 -05:00
parent 96baf9769a
commit 1d40750a60
2 changed files with 9 additions and 0 deletions

View File

@ -101,6 +101,12 @@
* "title", _("About ExampleCode"),
* NULL);
* ]|
*
* # CSS nodes
*
* GtkAboutDialog has a single CSS node with the name window and style
* class .aboutdialog.
*/
typedef struct

View File

@ -2,6 +2,9 @@
<interface domain="gtk40">
<template class="GtkAboutDialog" parent="GtkWindow">
<property name="resizable">0</property>
<style>
<class name="aboutdialog"/>
</style>
<child type="titlebar">
<object class="GtkHeaderBar" id="headerbar1">
<child type="title">