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 441287 - Glitch in the Snippets plugin when closing files
Glitch in the Snippets plugin when closing files
Status: RESOLVED FIXED
Product: gedit-plugins
Classification: Other
Component: General
2.18.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2007-05-25 21:01 UTC by Sebastien Bacher
Modified: 2019-03-23 20:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Sebastien Bacher 2007-05-25 21:01:23 UTC
The bug has been opened on https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/116749

"Binary package hint: gedit

The "Snippets" plugin stops working after opening and closing a file.
Background:
Using Ubuntu Fiesty with Gnome v. 2.18.1 and gedit
Steps to Reproduce:
1. Create two UTF-8 text files (text1 and text2)
2. Open file1
3. I was working with custom snippets, although the issue appears to extend to preformatted snippets as well. So, create a custom snippet and give it a tab command (I didn't use the hotkeys, but the problem can be reproduced with those, too).
4. Add some text and use the tab (or hotkey) cues to enter your snippet.
5. Open file2 (Either visually from Nautilus or from the "Open" menu item)
6. Close file2 (I used the "x")
7. Now try to enter your same snippets in file1 using the same commands. You should find that they are no longer triggering the Snippet plugin.
8. If you close gedit and open it again, the snippets should work again.

Please contact me if any further details are needed.
..."
Comment 1 jessevdk@gmail.com 2007-07-28 14:37:48 UTC
Thanks for reporting this bug! The problem was that the global snippets library was always unreffed when a tab was closed, but it wasn't properly reffed when the tab opened! This has been fixed in the current development.