I see gtk_key_snooper is deprecated - it is currently in use to allow the program to intercept key presses made on GtkMenuItems in my application. The suggestion is that the key press event should be intercepted by the widget. The key-press-event documentation says that the GdkWindow associated with the widget has to have the GDK_KEY_PRESS_MASK enabled for the event to be received. But gtk_widget_get_window (menu_item) gives a NULL pointer.
All attempts to get g_signal_connect (G_OBJECT (menu_item), "key-press-event", G_CALLBACK(my_key_snooper), NULL); to work are failing. Can anyone suggest a way forward? Richard Shann _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list