get_accel_group() returns the global accelerator group that is used in the calling GtkMenu.
Note that this method does not work as it should in the win32 version of GTK+ currently used by PHP-GTK. Also, much of the accelerator lock mechanism has been replaced in GTK2. Future-friendly code can be created by using GtkItemFactory to create your menus; however, the same limitations in functionality currently apply.