diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-04-05 22:05:33 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-04-05 22:05:33 +0000 |
commit | 1859193c5de0669dc11e38354f4a77d0d7841420 (patch) | |
tree | 0a7da9f5c6806523b7cfb84d4c6278fe6e267790 | |
parent | 450490bcf63420a76a4692ca9ce6a16965543904 (diff) | |
parent | 9138d91c1cd2d766a80919699d84a66849c79968 (diff) | |
download | gtk+-1859193c5de0669dc11e38354f4a77d0d7841420.tar.gz |
Merge branch 'wip/exalm/shortcuts' into 'main'
Add style classes to standard dialogs
See merge request GNOME/gtk!5791
-rw-r--r-- | gtk/deprecated/gtkappchooserdialog.c | 5 | ||||
-rw-r--r-- | gtk/gtkcolorchooserdialog.c | 5 | ||||
-rw-r--r-- | gtk/gtkfilechooserdialog.c | 5 | ||||
-rw-r--r-- | gtk/gtkfontchooserdialog.c | 5 | ||||
-rw-r--r-- | gtk/gtkpagesetupunixdialog.c | 5 | ||||
-rw-r--r-- | gtk/gtkshortcutswindow.c | 6 | ||||
-rw-r--r-- | gtk/ui/gtkappchooserdialog.ui | 3 | ||||
-rw-r--r-- | gtk/ui/gtkcolorchooserdialog.ui | 3 | ||||
-rw-r--r-- | gtk/ui/gtkfilechooserdialog.ui | 3 | ||||
-rw-r--r-- | gtk/ui/gtkfontchooserdialog.ui | 3 | ||||
-rw-r--r-- | gtk/ui/gtkpagesetupunixdialog.ui | 3 |
11 files changed, 46 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/gtkcolorchooserdialog.c b/gtk/gtkcolorchooserdialog.c index a5af33fe4b..207db98d00 100644 --- a/gtk/gtkcolorchooserdialog.c +++ b/gtk/gtkcolorchooserdialog.c @@ -48,6 +48,11 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS * * `GtkColorChooserDialog` has been deprecated in favor of [class@Gtk.ColorDialog]. * + * ## CSS nodes + * + * `GtkColorChooserDialog` has a single CSS node with the name `window` and style + * class `.colorchooser`. + * * Deprecated: 4.10: Use [class@Gtk.ColorDialog] instead */ diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c index 841d61889b..c4ca3dbaaa 100644 --- a/gtk/gtkfilechooserdialog.c +++ b/gtk/gtkfilechooserdialog.c @@ -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 */ diff --git a/gtk/gtkfontchooserdialog.c b/gtk/gtkfontchooserdialog.c index 3fe543f33f..5d7f3fa157 100644 --- a/gtk/gtkfontchooserdialog.c +++ b/gtk/gtkfontchooserdialog.c @@ -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 */ 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/gtkshortcutswindow.c b/gtk/gtkshortcutswindow.c index 1c3d6ea667..966c9398b2 100644 --- a/gtk/gtkshortcutswindow.c +++ b/gtk/gtkshortcutswindow.c @@ -87,6 +87,11 @@ * and "Terminal Shortcuts". * * The .ui file for this example can be found [here](https://gitlab.gnome.org/GNOME/gtk/tree/main/demos/gtk-demo/shortcuts-builder.ui). + * + * ## CSS nodes + * + * `GtkShortcutsWindow` has a single CSS node with the name `window` and style + * class `.shortcuts`. */ struct _GtkShortcutsWindow @@ -980,4 +985,5 @@ gtk_shortcuts_window_init (GtkShortcutsWindow *self) g_signal_connect_object (self->stack, "notify::visible-child", G_CALLBACK (update_title_stack), self, G_CONNECT_SWAPPED); + gtk_widget_add_css_class (GTK_WIDGET (self), "shortcuts"); } 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> diff --git a/gtk/ui/gtkcolorchooserdialog.ui b/gtk/ui/gtkcolorchooserdialog.ui index 0b582aad37..c8997d5d0e 100644 --- a/gtk/ui/gtkcolorchooserdialog.ui +++ b/gtk/ui/gtkcolorchooserdialog.ui @@ -3,6 +3,9 @@ <template class="GtkColorChooserDialog" parent="GtkDialog"> <property name="title" translatable="yes">Select a Color</property> <property name="resizable">0</property> + <style> + <class name="colorchooser"/> + </style> <child internal-child="content_area"> <object class="GtkBox" id="dialog-vbox1"> <property name="orientation">1</property> diff --git a/gtk/ui/gtkfilechooserdialog.ui b/gtk/ui/gtkfilechooserdialog.ui index 53ed506135..097aca09a4 100644 --- a/gtk/ui/gtkfilechooserdialog.ui +++ b/gtk/ui/gtkfilechooserdialog.ui @@ -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> diff --git a/gtk/ui/gtkfontchooserdialog.ui b/gtk/ui/gtkfontchooserdialog.ui index bed630820e..2ccd571132 100644 --- a/gtk/ui/gtkfontchooserdialog.ui +++ b/gtk/ui/gtkfontchooserdialog.ui @@ -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> 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> |