summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2023-04-06 00:11:48 +0400
committerAlexander Mikhaylenko <alexm@gnome.org>2023-04-06 00:58:38 +0400
commit9138d91c1cd2d766a80919699d84a66849c79968 (patch)
tree67de009ba97852d2acd53a4cacbcb50575d0b6e2
parentf1dff403918791b0bf2817e18b06c10064a362ab (diff)
downloadgtk+-9138d91c1cd2d766a80919699d84a66849c79968.tar.gz
pagesetupunixdialog: Add "pagesetup" style class
-rw-r--r--gtk/gtkpagesetupunixdialog.c5
-rw-r--r--gtk/ui/gtkpagesetupunixdialog.ui3
2 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkpagesetupunixdialog.c b/gtk/gtkpagesetupunixdialog.c
index a78bbc13d9..799a732892 100644
--- a/gtk/gtkpagesetupunixdialog.c
+++ b/gtk/gtkpagesetupunixdialog.c
@@ -48,6 +48,11 @@
* It can be used very much like any other GTK dialog, at the
* cost of the portability offered by the high-level printing
* API in [class@Gtk.PrintOperation].
+ *
+ * ## CSS nodes
+ *
+ * `GtkPageSetupUnixDialog` has a single CSS node with the name `window` and
+ * style class `.pagesetup`.
*/
typedef struct _GtkPageSetupUnixDialogClass GtkPageSetupUnixDialogClass;
diff --git a/gtk/ui/gtkpagesetupunixdialog.ui b/gtk/ui/gtkpagesetupunixdialog.ui
index ded0b2a826..21315e0d05 100644
--- a/gtk/ui/gtkpagesetupunixdialog.ui
+++ b/gtk/ui/gtkpagesetupunixdialog.ui
@@ -3,6 +3,9 @@
<template class="GtkPageSetupUnixDialog" parent="GtkDialog">
<property name="resizable">0</property>
<property name="title" translatable="yes">Page Setup</property>
+ <style>
+ <class name="pagesetup"/>
+ </style>
<child internal-child="content_area">
<object class="GtkBox" id="dialog-vbox1">
<property name="orientation">1</property>