window: Deprecate the ::keys-changed signal
authorMatthias Clasen <mclasen@redhat.com>
Fri, 9 Dec 2022 18:14:06 +0000 (13:14 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 9 Dec 2022 18:14:27 +0000 (13:14 -0500)
gtk/gtkwindow.c

index 2515532bc396b9778ff37963976452eff1c10de5..dfe84c9b6e9adbaeb1e64081d1c8609e338cfa84 100644 (file)
@@ -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,