Latex toolbar does not disappear if editing a non-latex file

Bug #878262 reported by Valerio
10
This bug affects 1 person
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 *windowactivatable.py* located in /usr/lib/gedit/plugins/latex/ - Line 418
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

Tags: patch
Revision history for this message
Valerio (valerio-maggio) wrote :
description: updated
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Windowactivatable.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.]

tags: added: patch
Revision history for this message
José Aliste (jose-aliste) wrote :

This is not the correct tracker for gedit-latex. Please forward the bug upstream (http://bugs.gnome.org) Component: gedit plugin:latex.

Revision history for this message
José Aliste (jose-aliste) wrote :

Sorry, it's http://bugzilla.gnome.org Product:gedit Component:latex Thanks

Revision history for this message
Pietro Battiston (toobaz) wrote :

Fixed long time ago... but thanks Valerio!

Changed in gedit-latex-plugin (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.