filechooserdialog: Add "filechooser" style class
authorAlexander Mikhaylenko <alexm@gnome.org>
Wed, 5 Apr 2023 20:10:54 +0000 (00:10 +0400)
committerAlexander Mikhaylenko <alexm@gnome.org>
Wed, 5 Apr 2023 20:58:38 +0000 (00:58 +0400)
gtk/gtkfilechooserdialog.c
gtk/ui/gtkfilechooserdialog.ui

index 841d61889b711c9ed7f01525745a84035b0f552d..c4ca3dbaaa42c75cc4d2ad03c71254510340cedf 100644 (file)
@@ -212,6 +212,11 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
  * To summarize, make sure you use a predefined response code
  * when you use `GtkFileChooserDialog` to ensure proper operation.
  *
+ * ## CSS nodes
+ *
+ * `GtkFileChooserDialog` has a single CSS node with the name `window` and style
+ * class `.filechooser`.
+ *
  * Deprecated: 4.10: Use [class@Gtk.FileDialog] instead
  */
 
index 53ed506135fe6ad2674373da4afb60aef37c39f8..097aca09a4ee3ee9b06644e1a4873d597608e564 100644 (file)
@@ -3,6 +3,9 @@
   <template class="GtkFileChooserDialog" parent="GtkDialog">
     <property name="default-width">600</property>
     <signal name="response" handler="response_cb" swapped="no"/>
+    <style>
+      <class name="filechooser"/>
+    </style>
     <child internal-child="content_area">
       <object class="GtkBox">
         <property name="orientation">1</property>