fontchooserdialog: Add "fontchooser" style class
authorAlexander Mikhaylenko <alexm@gnome.org>
Wed, 5 Apr 2023 20:11:31 +0000 (00:11 +0400)
committerAlexander Mikhaylenko <alexm@gnome.org>
Wed, 5 Apr 2023 20:58:38 +0000 (00:58 +0400)
gtk/gtkfontchooserdialog.c
gtk/ui/gtkfontchooserdialog.ui

index 3fe543f33f777799f96707e8f6bcbd2d47dc600b..5d7f3fa157a756f29252e3359bfc3136dddf77b7 100644 (file)
@@ -74,6 +74,11 @@ struct _GtkFontChooserDialogClass
  * interface exposes the buttons with the names “select_button”
  * and “cancel_button”.
  *
+ * ## CSS nodes
+ *
+ * `GtkFontChooserDialog` has a single CSS node with the name `window` and style
+ * class `.fontchooser`.
+ *
  * Deprecated: 4.10: Use [class@Gtk.FontDialog] instead
  */
 
index bed630820e0c16de13d05dc11339be4b16b2e955..2ccd571132ca7f6fdc3b8cddcc46de587fc3e0e1 100644 (file)
@@ -2,6 +2,9 @@
 <interface domain="gtk40">
   <template class="GtkFontChooserDialog" parent="GtkDialog">
     <property name="title" translatable="yes">Select Font</property>
+    <style>
+      <class name="fontchooser"/>
+    </style>
     <child internal-child="content_area">
       <object class="GtkBox" id="dialog-vbox1">
         <property name="orientation">1</property>