From: Alexander Mikhaylenko Date: Wed, 5 Apr 2023 20:10:09 +0000 (+0400) Subject: shortcutswindow: Add "shortcuts" style class X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~435^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=399ee3db3fd850230374569923e2595c6493c103;p=gtk4.git shortcutswindow: Add "shortcuts" style class --- 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"); }