From 40d54ad3ebe36c222b38c128569a320961ae81f9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 9 Dec 2022 13:14:06 -0500 Subject: [PATCH] window: Deprecate the ::keys-changed signal --- gtk/gtkwindow.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 2515532bc3..dfe84c9b6e 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -1094,11 +1094,14 @@ gtk_window_class_init (GtkWindowClass *klass) * * emitted when the set of accelerators or mnemonics that * are associated with @window changes. + * + * Deprecated: 4.10: Use [class@Gtk.Shortcut] and [class@Gtk.EventController] + * to implement keyboard shortcuts */ window_signals[KEYS_CHANGED] = g_signal_new (I_("keys-changed"), G_TYPE_FROM_CLASS (gobject_class), - G_SIGNAL_RUN_FIRST, + G_SIGNAL_RUN_FIRST | G_SIGNAL_DEPRECATED, G_STRUCT_OFFSET (GtkWindowClass, keys_changed), NULL, NULL, NULL, -- 2.30.2