7399: Cannot copy via context menu on Views into Charts Category

This commit is contained in:
Jérôme Rapinat 2014-01-26 12:11:12 +01:00
parent 30a5c27c3d
commit b34391ec2f
2 changed files with 3 additions and 3 deletions

View File

@ -1975,6 +1975,6 @@ class FanChartGrampsGUI(object):
if person:
cb = Gtk.Clipboard.get_for_display(Gdk.Display.get_default(),
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 False

View File

@ -1302,7 +1302,7 @@ class PedigreeView(NavigationView):
if person:
clipboard = Gtk.Clipboard.get_for_display(Gdk.Display.get_default(),
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 False
@ -1315,7 +1315,7 @@ class PedigreeView(NavigationView):
if family:
clipboard = Gtk.Clipboard.get_for_display(Gdk.Display.get_default(),
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 False