** Patch added: "Windowactivatable.py Patch - Checks if the current file 
extension is in *latex_extensions*"
   
https://bugs.launchpad.net/bugs/878262/+attachment/2560556/+files/windowactivatable.diff

** Description changed:

  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 from the toolbar disappears but the toolbar 
placeholder remains visibile.
+ 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:
  The patch in attachment solves the problem :)
  
  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..)
  
  Please find the Patch in attachment! ;)
  
  All the best guys

** Description changed:

  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:
- The patch in attachment solves the problem :)
+ 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..)
- 
- Please find the Patch in attachment! ;)
+ (Btw, the latex_extensions variable is initialized and never used..) ;)
  
  All the best guys

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/878262

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gedit-latex-plugin/+bug/878262/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to