shortcutswindow: Add "shortcuts" style class
authorAlexander Mikhaylenko <alexm@gnome.org>
Wed, 5 Apr 2023 20:10:09 +0000 (00:10 +0400)
committerAlexander Mikhaylenko <alexm@gnome.org>
Wed, 5 Apr 2023 20:58:38 +0000 (00:58 +0400)
gtk/gtkshortcutswindow.c

index 1c3d6ea667073e2614b648de27008e295ff4ce0d..966c9398b243d8b565ca544090530f84a6dd397b 100644 (file)
  * 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");
 }