Fixed Utils.open_file_with_default_application() to gui.utils instead of Utils now. Works again.

svn: r12699
This commit is contained in:
Rob G. Healey
2009-06-23 20:49:18 +00:00
parent 1101b21ba0
commit ae28b8538b
13 changed files with 34 additions and 25 deletions

View File

@ -40,6 +40,7 @@ import gtk
# gramps modules
#
#-------------------------------------------------------------------------
from gui.utils import open_file_with_default_application
import const
import Config
import gen.lib
@ -219,7 +220,7 @@ class EditMedia(EditPrimary):
if ref_obj:
media_path = Utils.media_path_full(self.dbstate.db,
ref_obj.get_path())
Utils.open_file_with_default_application(media_path)
open_file_with_default_application(media_path)
def select_file(self, val):
self.determine_mime()

View File

@ -41,6 +41,7 @@ import gtk
# gramps modules
#
#-------------------------------------------------------------------------
from gui.utils import open_file_with_default_application
import const
import Config
import Mime
@ -370,7 +371,7 @@ class EditMediaRef(EditReference):
def button_press_event(self, obj, event):
if event.button==1 and event.type == gtk.gdk._2BUTTON_PRESS:
photo_path = Utils.media_path_full(self.db, self.source.get_path())
Utils.open_file_with_default_application(photo_path)
open_file_with_default_application(photo_path)
def button_press_event_ref(self, widget, event):
"""

View File

@ -48,7 +48,7 @@ import gtk
#-------------------------------------------------------------------------
import const
import Utils
from gui.utils import add_menuitem
from gui.utils import add_menuitem, open_file_with_default_application
import Mime
import gen.lib
import widgets
@ -512,7 +512,7 @@ class EditPerson(EditPrimary):
object_handle = photo.get_reference_handle()
ref_obj = self.db.get_object_from_handle(object_handle)
photo_path = Utils.media_path_full(self.db, ref_obj.get_path())
Utils.open_file_with_default_application(photo_path)
open_file_with_default_application(photo_path)
def _popup_change_description(self, obj):
"""