From: Matthias Clasen Date: Tue, 24 Mar 2020 03:04:06 +0000 (-0400) Subject: popover: Implement GtkShortcutManager X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~19^2~32^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4a430820bd864de218905082cc113b2ee9b1c16b;p=gtk4.git popover: Implement GtkShortcutManager This makes mnemonics work in popovers. --- diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c index ebdfcc9a9c..ae4d818be6 100644 --- a/gtk/gtkpopover.c +++ b/gtk/gtkpopover.c @@ -119,6 +119,7 @@ #include "gtkcsscolorvalueprivate.h" #include "gtkcssnumbervalueprivate.h" #include "gtksnapshot.h" +#include "gtkshortcutmanager.h" #include "gtkrender.h" #include "gtkstylecontextprivate.h" @@ -174,10 +175,13 @@ enum { static GParamSpec *properties[NUM_PROPERTIES] = { NULL }; +static void gtk_popover_shortcut_manager_interface_init (GtkShortcutManagerInterface *iface); static void gtk_popover_native_interface_init (GtkNativeInterface *iface); G_DEFINE_TYPE_WITH_CODE (GtkPopover, gtk_popover, GTK_TYPE_BIN, G_ADD_PRIVATE (GtkPopover) + G_IMPLEMENT_INTERFACE (GTK_TYPE_SHORTCUT_MANAGER, + gtk_popover_shortcut_manager_interface_init) G_IMPLEMENT_INTERFACE (GTK_TYPE_NATIVE, gtk_popover_native_interface_init)) @@ -1620,6 +1624,11 @@ gtk_popover_set_default_widget (GtkPopover *popover, g_object_notify_by_pspec (G_OBJECT (popover), properties[PROP_DEFAULT_WIDGET]); } +static void +gtk_popover_shortcut_manager_interface_init (GtkShortcutManagerInterface *iface) +{ +} + static void gtk_popover_native_interface_init (GtkNativeInterface *iface) {