# HG changeset patch # User Henrik Stuart <h...@hstuart.dk> # Date 1254253433 -7200 # Node ID d03d755e33b99ca2a550ac63895e27fd200fc32b # Parent 7d0b45077f6a42408be95891bbd3eaccecff93c9 history: use the default clipboard for storing changeset hash
This fixes the storing of the hash on e.g. Ubuntu where it was only available for mouse-pasting using the PRIMARY clipboard, whereas CLIPBOARD (the default value) is available to all applications pasting from the default clipboard. diff -r 7d0b45077f6a -r d03d755e33b9 tortoisehg/hgtk/history.py --- a/tortoisehg/hgtk/history.py Tue Sep 29 14:28:21 2009 -0500 +++ b/tortoisehg/hgtk/history.py Tue Sep 29 21:43:53 2009 +0200 @@ -1308,8 +1308,7 @@ def copy_hash(self, menuitem): hash = self.repo[self.currevid].hex() - sel = (os.name == 'nt') and 'CLIPBOARD' or 'PRIMARY' - clipboard = gtk.Clipboard(selection=sel) + clipboard = gtk.Clipboard() clipboard.set_text(hash) def export_patch(self, menuitem): ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop