2006-11-25 Don Allingham <don@gramps-project.org>
* src/docgen/ODFDoc.py: don't query mime type for ODT, since some systems return only "ODT Document", which is kind of useless. Use OpenDocument Text instead. svn: r7693
This commit is contained in:
parent
8b53da15c7
commit
aad2755abc
@ -1,3 +1,8 @@
|
||||
2006-11-25 Don Allingham <don@gramps-project.org>
|
||||
* src/docgen/ODFDoc.py: don't query mime type for ODT, since some systems
|
||||
return only "ODT Document", which is kind of useless. Use OpenDocument Text
|
||||
instead.
|
||||
|
||||
2006-11-24 Don Allingham <don@gramps-project.org>
|
||||
* src/images/Makefile.am: add share-fam.png
|
||||
* src/GrampsDb/_WriteXML.py: handle unicode decoding errors
|
||||
|
@ -47,8 +47,6 @@ class TextFormatComboBox(gtk.ComboBox):
|
||||
continue
|
||||
name = item[0]
|
||||
self.store.append(row=[name])
|
||||
#if callback:
|
||||
# menuitem.connect("activate",callback)
|
||||
if item[7] == active:
|
||||
active_index = index
|
||||
elif not active and name == out_pref:
|
||||
|
@ -1175,18 +1175,15 @@ class ODFDoc(BaseDoc.BaseDoc):
|
||||
print_label = None
|
||||
try:
|
||||
mprog = Mime.get_application(_apptype)
|
||||
mtype = Mime.get_description(_apptype)
|
||||
|
||||
if Utils.search_for(mprog[0]):
|
||||
print_label = _("Open in %(program_name)s") % { 'program_name':
|
||||
mprog[1]}
|
||||
else:
|
||||
print_label = None
|
||||
|
||||
register_text_doc(mtype,ODFDoc,1,1,1,".odt",print_label)
|
||||
register_book_doc(mtype,ODFDoc,1,1,1,".odt")
|
||||
register_draw_doc(mtype,ODFDoc,1,1, ".odt",print_label);
|
||||
except:
|
||||
print_label = None
|
||||
|
||||
register_text_doc(_('Open Document Text'),ODFDoc,1,1,1,".odt", None)
|
||||
register_book_doc(_("Open Document Text"),ODFDoc,1,1,1,".odt")
|
||||
register_draw_doc(_("Open Document Text"),ODFDoc,1,1,".odt",None);
|
||||
|
Loading…
Reference in New Issue
Block a user