[Reportbug-commits] [reportbug] 19/22: gtk2_ui: use PyGI clipboard API
Sandro Tosi
morph at moszumanska.debian.org
Thu Dec 15 00:43:59 UTC 2016
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository reportbug.
commit a50c8b741ac530d442559d1af41db7caa30d5bac
Author: Simon McVittie <smcv at debian.org>
Date: Wed Dec 14 16:32:02 2016 +0000
gtk2_ui: use PyGI clipboard API
clipboard_get() is a pygtkcompat shim around Gtk.Clipboard.Get(),
which has one mandatory parameter.
---
reportbug/ui/gtk2_ui.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index 61785bc..88eecf4 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -238,7 +238,7 @@ class ReportViewerDialog(Gtk.Dialog):
# ok Gtk.ResponseType.APPLY is ugly for Gtk.STOCK_COPY, but who cares?
# maybe adding it as a secondary button or such is better
if res == Gtk.ResponseType.APPLY:
- clipboard = gtk.clipboard_get()
+ clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
clipboard.set_text(self.message)
else:
self.destroy()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git
More information about the Reportbug-commits
mailing list