fix: space, change tag to tag-link
This commit is contained in:
parent
0b88f0cbbe
commit
29b316716d
@ -119,7 +119,7 @@ def map2class(target):
|
|||||||
'place-link': ClipPlace,
|
'place-link': ClipPlace,
|
||||||
'placeref': ClipPlaceRef,
|
'placeref': ClipPlaceRef,
|
||||||
'note-link': ClipNote,
|
'note-link': ClipNote,
|
||||||
'tag': ClipTag,
|
'tag-link': ClipTag,
|
||||||
'TEXT': ClipText}
|
'TEXT': ClipText}
|
||||||
return _d_[target] if target in _d_ else None
|
return _d_[target] if target in _d_ else None
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ OBJ2TARGET = {"Person": Gdk.atom_intern('person-link', False),
|
|||||||
'Media': Gdk.atom_intern('media', False),
|
'Media': Gdk.atom_intern('media', False),
|
||||||
'Place': Gdk.atom_intern('place-link', False),
|
'Place': Gdk.atom_intern('place-link', False),
|
||||||
'Note': Gdk.atom_intern('note-link', False),
|
'Note': Gdk.atom_intern('note-link', False),
|
||||||
"Tag": Gdk.atom_intern('tag', False)}
|
'Tag': Gdk.atom_intern('tag-link', False)}
|
||||||
|
|
||||||
|
|
||||||
def obj2target(target):
|
def obj2target(target):
|
||||||
@ -447,7 +447,7 @@ class ClipTag(ClipHandleWrapper):
|
|||||||
self._title = value.get_name()
|
self._title = value.get_name()
|
||||||
self._value = value.get_color()
|
self._value = value.get_color()
|
||||||
|
|
||||||
|
|
||||||
class ClipAttribute(ClipObjWrapper):
|
class ClipAttribute(ClipObjWrapper):
|
||||||
|
|
||||||
DROP_TARGETS = [DdTargets.ATTRIBUTE]
|
DROP_TARGETS = [DdTargets.ATTRIBUTE]
|
||||||
|
@ -154,7 +154,7 @@ class _DdTargets:
|
|||||||
self.URL = _DdType(self, 'url')
|
self.URL = _DdType(self, 'url')
|
||||||
self.SURNAME = _DdType(self, 'surname')
|
self.SURNAME = _DdType(self, 'surname')
|
||||||
self.CITATION_LINK = _DdType(self, 'citation-link')
|
self.CITATION_LINK = _DdType(self, 'citation-link')
|
||||||
self.TAG_LINK = _DdType(self, 'tag')
|
self.TAG_LINK = _DdType(self, 'tag-link')
|
||||||
|
|
||||||
# List of all types that are used between
|
# List of all types that are used between
|
||||||
# gramps widgets but should not be exported
|
# gramps widgets but should not be exported
|
||||||
|
Loading…
Reference in New Issue
Block a user