Merge lp:~evfool/update-manager/fixcopylink into lp:update-manager

Proposed by Robert Roth
Status: Merged
Merged at revision: 2228
Proposed branch: lp:~evfool/update-manager/fixcopylink
Merge into: lp:update-manager
Diff against target: 16 lines (+4/-2)
1 file modified
UpdateManager/ChangelogViewer.py (+4/-2)
To merge this branch: bzr merge lp:~evfool/update-manager/fixcopylink
Reviewer Review Type Date Requested Status
Michael Vogt Pending
Review via email: mp+74981@code.launchpad.net

Description of the change

Fix the "Copy web link" context menu item of the ChangeLog viewer. It did not work before of some Gtk changes, now it does work. Fixes bug #831944.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'UpdateManager/ChangelogViewer.py'
2--- UpdateManager/ChangelogViewer.py 2011-08-12 09:13:42 +0000
3+++ UpdateManager/ChangelogViewer.py 2011-09-12 12:21:33 +0000
4@@ -88,8 +88,10 @@
5 if action == "open":
6 open_url(url)
7 if action == "copy":
8- cb = Gtk.Clipboard()
9- cb.set_text(url)
10+ display = Gdk.Display.get_default()
11+ selection = Gdk.Atom.intern ("CLIPBOARD", False)
12+ cb = Gtk.Clipboard.get_for_display(display, selection)
13+ cb.set_text(url, -1)
14 cb.store()
15
16 def tag_link(self, start, end, url):

Subscribers

People subscribed via source and target branches

to status/vote changes: