Fixed the proper timing for the Edit and Delete buttons to be sensitive.

svn: r17943
This commit is contained in:
Rob G. Healey 2011-07-21 09:09:05 +00:00
parent bdb27312b7
commit a232e644a3

View File

@ -483,6 +483,9 @@ class EditExifMetadata(Gramplet):
# XmpTag and IptcTag has been purposefully excluded
self.__display_exif_tags(self.image_path)
# activate these buttons
self.activate_buttons(["Edit"])
# has mime, but not an image
else:
self.exif_widgets["MessageArea"].set_text(_("Please choose a different image..."))
@ -521,8 +524,8 @@ class EditExifMetadata(Gramplet):
# update set_has_data functionality
self.set_has_data(has_data)
# activate these buttons
self.activate_buttons(["Delete", "Edit"])
if has_data:
self.activate_buttons(["Delete"])
def changed_cb(self, ext_value =None):
"""