Latex toolbar does not disappear if editing a non-latex file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gedit-latex-plugin (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Context:
GEdit 3.x (3.2 actually) and gedit-latex-plugin (3.3.1, i.e. the only one compatible with GEdit 3.x).
Symptoms:
The Latex Toolbar does not disappear if editing a non-latex file, namely a file whose extension is not in the list [.tex, .sty, .Rnw].
In particular, all the buttons of the toolbar disappear but the toolbar placeholder remains visibile.
This not happens if the edited file has no extension (i.e. its name does not ends with *.something*)
Solution:
Please find the solution in the patch in attachment :)
The problem (imho) is in the file *windowactivata
The toolbar is shown if the file has *some-extension*, regardless what it actually is!
I've simply solved by checking that the file extension in *latex_extensions*
(Btw, the latex_extensions variable is initialized and never used..) ;)
All the best guys
The attachment "Windowactivata ble.py Patch - Checks if the current file extension is in *latex_extensions*" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors please also unsubscribe the team from this bug report.
[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]