[gtk/about-dialog-icon-size: 2/4] aboutdialog: Set a style class
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/about-dialog-icon-size: 2/4] aboutdialog: Set a style class
- Date: Mon, 11 Jan 2021 21:52:25 +0000 (UTC)
commit 5397e79ebd3084423da3e16def65a4211d33f4e3
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 11 16:48:06 2021 -0500
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.
gtk/gtkaboutdialog.c | 6 ++++++
gtk/ui/gtkaboutdialog.ui | 3 +++
2 files changed, 9 insertions(+)
---
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index f3584aee41..ce3c6f7db2 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">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]