After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 339397 - Accelerator snippets don't work when gedit is just started
Accelerator snippets don't work when gedit is just started
Status: RESOLVED FIXED
Product: gedit-plugins
Classification: Other
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-22 13:14 UTC by jessevdk@gmail.com
Modified: 2019-03-23 20:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix (2.94 KB, patch)
2006-04-22 14:33 UTC, jessevdk@gmail.com
committed Details | Review

Description jessevdk@gmail.com 2006-04-22 13:14:10 UTC
Because of the lazy loading, snippets which are activated by accelerators won't work when snippets aren't yet loaded. It works for tab trigger snippets because when pressing <tab> the snippets are loaded when the weren't already. With accelerators this doesn't happen because the accelerators aren't installed yet (the snippets aren't loaded) so nothing happens.

A possible solution would be to have a check on possible valid accelerator in the keypress event of the view and load snippets when such a keypress event occurs. I'm not sure this is the right approach though.
Comment 1 jessevdk@gmail.com 2006-04-22 14:33:48 UTC
Created attachment 64105 [details] [review]
Fix

This patch fixes the issue using the proposed method.