Merge branch 'wip/exalm/shortcuts' into 'main'

Add style classes to standard dialogs

See merge request GNOME/gtk!5791
This commit is contained in:
Matthias Clasen
2023-04-05 22:05:33 +00:00
11 changed files with 46 additions and 0 deletions

View File

@@ -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.

View File

@@ -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
*/

View 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
*/

View 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
*/

View File

@@ -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;

View File

@@ -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");
}

View File

@@ -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>

View File

@@ -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>

View 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>

View 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>

View File

@@ -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>