Remove the "print_label" construct from the reports. The only label is "Open with default viewer". No need to check the mime type or to look for the default application because Gramps uses the host OS to figure it out for the user.

svn: r12351
This commit is contained in:
Brian Matherly
2009-03-16 04:22:12 +00:00
parent be898d84a9
commit 0214b842cd
16 changed files with 62 additions and 114 deletions

View File

@@ -43,11 +43,8 @@ import BaseDoc
from gen.plug import PluginManager
import ImgManip
import Errors
import Mime
import Utils
_apptype = 'text/x-tex'
#------------------------------------------------------------------------
#
# Convert from roman to arabic numbers
@@ -646,17 +643,5 @@ class LaTeXDoc(BaseDoc.BaseDoc,BaseDoc.TextDoc):
# Register plugins
#
#------------------------------------------------------------------------
print_label = None
pmgr = PluginManager.get_instance()
try:
mprog = Mime.get_application(_apptype)
if Utils.search_for(mprog[0]):
print_label = _("Open in %(program_name)s") % { 'program_name':
mprog[1]}
else:
print_label = None
except:
print_label = None
pmgr.register_text_doc(_('LaTeX'), LaTeXDoc, 1, 0, ".tex", print_label)
pmgr.register_text_doc(_('LaTeX'), LaTeXDoc, 1, 0, ".tex")