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

This commit is contained in:
Jérôme Rapinat 2014-01-26 12:12:37 +01:00
parent ce6818fae8
commit 9fbdfac51a
2 changed files with 3 additions and 3 deletions

View File

@ -1980,6 +1980,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