summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-01-11 16:48:06 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-01-11 17:46:55 -0500
commit1d40750a6045c2c03250d5594e30ef3773c9c32a (patch)
tree9c57ed7588656eb10bef2a878f90c884a414608f
parent96baf9769a0b3ca1c364708e58785c39499f6068 (diff)
downloadgtk+-1d40750a6045c2c03250d5594e30ef3773c9c32a.tar.gz
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.
-rw-r--r--gtk/gtkaboutdialog.c6
-rw-r--r--gtk/ui/gtkaboutdialog.ui3
2 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index bff8e76432..4cdee36575 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -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
diff --git a/gtk/ui/gtkaboutdialog.ui b/gtk/ui/gtkaboutdialog.ui
index ab5fe44b32..bd69376d6a 100644
--- a/gtk/ui/gtkaboutdialog.ui
+++ b/gtk/ui/gtkaboutdialog.ui
@@ -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">