diff options
author | Alexander Mikhaylenko <alexm@gnome.org> | 2023-04-06 00:10:09 +0400 |
---|---|---|
committer | Alexander Mikhaylenko <alexm@gnome.org> | 2023-04-06 00:58:38 +0400 |
commit | 399ee3db3fd850230374569923e2595c6493c103 (patch) | |
tree | b981f3835f0f03ec0c23caa931e969eb0bb0bbc4 | |
parent | 6a2f715250b5ff15f8bbf5f805a957010f3627dd (diff) | |
download | gtk+-399ee3db3fd850230374569923e2595c6493c103.tar.gz |
shortcutswindow: Add "shortcuts" style class
-rw-r--r-- | gtk/gtkshortcutswindow.c | 6 |
1 files changed, 6 insertions, 0 deletions
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"); } |