From: Matthias Clasen Date: Fri, 9 Dec 2022 18:14:06 +0000 (-0500) Subject: window: Deprecate the ::keys-changed signal X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~47^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=40d54ad3ebe36c222b38c128569a320961ae81f9;p=gtk4.git window: Deprecate the ::keys-changed signal --- 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,