summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2023-04-06 00:10:25 +0400
committerAlexander Mikhaylenko <alexm@gnome.org>2023-04-06 00:58:38 +0400
commit80a11b1a1c34ef83a844a2af307ba7e0aff469ed (patch)
treeb1a0ba47c1bee00c99d04ea9525b89949e1783c7
parent399ee3db3fd850230374569923e2595c6493c103 (diff)
downloadgtk+-80a11b1a1c34ef83a844a2af307ba7e0aff469ed.tar.gz
appchooserdialog: Add "appchooser" style class
-rw-r--r--gtk/deprecated/gtkappchooserdialog.c5
-rw-r--r--gtk/ui/gtkappchooserdialog.ui3
2 files changed, 8 insertions, 0 deletions
diff --git a/gtk/deprecated/gtkappchooserdialog.c b/gtk/deprecated/gtkappchooserdialog.c
index 4575c18d68..48becc324d 100644
--- a/gtk/deprecated/gtkappchooserdialog.c
+++ b/gtk/deprecated/gtkappchooserdialog.c
@@ -38,6 +38,11 @@
* To set the heading that is shown above the `GtkAppChooserWidget`,
* use [method@Gtk.AppChooserDialog.set_heading].
*
+ * ## CSS nodes
+ *
+ * `GtkAppChooserDialog` has a single CSS node with the name `window` and style
+ * class `.appchooser`.
+ *
* Deprecated: 4.10: The application selection widgets should be
* implemented according to the design of each platform and/or
* application requiring them.
diff --git a/gtk/ui/gtkappchooserdialog.ui b/gtk/ui/gtkappchooserdialog.ui
index 1e8faf5cea..2437d601d4 100644
--- a/gtk/ui/gtkappchooserdialog.ui
+++ b/gtk/ui/gtkappchooserdialog.ui
@@ -2,6 +2,9 @@
<interface domain="gtk40">
<template class="GtkAppChooserDialog" parent="GtkDialog">
<property name="title" translatable="yes">Select App</property>
+ <style>
+ <class name="appchooser"/>
+ </style>
<child internal-child="content_area">
<object class="GtkBox" id="dialog-vbox1">
<property name="orientation">1</property>