7399: Cannot copy via context menu on Views into Charts Category
This commit is contained in:
parent
ce6818fae8
commit
9fbdfac51a
@ -1980,6 +1980,6 @@ class FanChartGrampsGUI(object):
|
|||||||
if person:
|
if person:
|
||||||
cb = Gtk.Clipboard.get_for_display(Gdk.Display.get_default(),
|
cb = Gtk.Clipboard.get_for_display(Gdk.Display.get_default(),
|
||||||
Gdk.SELECTION_CLIPBOARD)
|
Gdk.SELECTION_CLIPBOARD)
|
||||||
cb.set_text( self.format_helper.format_person(person,11))
|
cb.set_text( self.format_helper.format_person(person,11), -1)
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
@ -1302,7 +1302,7 @@ class PedigreeView(NavigationView):
|
|||||||
if person:
|
if person:
|
||||||
clipboard = Gtk.Clipboard.get_for_display(Gdk.Display.get_default(),
|
clipboard = Gtk.Clipboard.get_for_display(Gdk.Display.get_default(),
|
||||||
Gdk.SELECTION_CLIPBOARD)
|
Gdk.SELECTION_CLIPBOARD)
|
||||||
clipboard.set_text(self.format_helper.format_person(person, 11))
|
clipboard.set_text(self.format_helper.format_person(person, 11), -1)
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@ -1315,7 +1315,7 @@ class PedigreeView(NavigationView):
|
|||||||
if family:
|
if family:
|
||||||
clipboard = Gtk.Clipboard.get_for_display(Gdk.Display.get_default(),
|
clipboard = Gtk.Clipboard.get_for_display(Gdk.Display.get_default(),
|
||||||
Gdk.SELECTION_CLIPBOARD)
|
Gdk.SELECTION_CLIPBOARD)
|
||||||
clipboard.set_text(self.format_helper.format_relation(family, 11))
|
clipboard.set_text(self.format_helper.format_relation(family, 11), -1)
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user