Cleanup some code in tooltips.

svn: r17877
This commit is contained in:
Rob G. Healey 2011-07-01 02:17:20 +00:00
parent f57c89c3c0
commit eb57c5279b

View File

@ -394,6 +394,10 @@ class EditExifMetadata(Gramplet):
""" """
db = self.dbstate.db db = self.dbstate.db
# set all data fields to editable...
for widget in _TOOLTIPS.keys():
self.exif_widgets[widget].set_editable(True)
# clear Display and Edit Areas # clear Display and Edit Areas
self.clear_metadata(self.orig_image) self.clear_metadata(self.orig_image)
self.model.clear() self.model.clear()
@ -446,10 +450,6 @@ class EditExifMetadata(Gramplet):
if mime_type.startswith("image"): if mime_type.startswith("image"):
self.activate_buttons(["Save"]) self.activate_buttons(["Save"])
# set all data fields to editable...
for widget in _TOOLTIPS.keys():
self.exif_widgets[widget].set_editable(True)
# will create the image and read it... # will create the image and read it...
self.setup_image(self.image_path, True) self.setup_image(self.image_path, True)
@ -457,7 +457,7 @@ class EditExifMetadata(Gramplet):
if self.extension not in [".jpeg", ".jpg", ".jfif"]: if self.extension not in [".jpeg", ".jpg", ".jfif"]:
self.activate_buttons(["Convert"]) self.activate_buttons(["Convert"])
# displays the imge Exif metadata # displays the imge Exif metadata...
self.display_exif_tags() self.display_exif_tags()
imagefile = True imagefile = True