[gedit-plugins] multiedit: use Gdk.SELECTION_CLIPBOARD.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] multiedit: use Gdk.SELECTION_CLIPBOARD.
- Date: Tue, 6 Sep 2011 22:13:44 +0000 (UTC)
commit 366bfc14af71ffb1a7a56322848b15c9b7726ed4
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Tue Sep 6 22:15:36 2011 +0200
multiedit: use Gdk.SELECTION_CLIPBOARD.
just push a patch to be able to use it in pygobject3
plugins/multiedit/multiedit/documenthelper.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/plugins/multiedit/multiedit/documenthelper.py b/plugins/multiedit/multiedit/documenthelper.py
index 9c1af0a..9643f9a 100644
--- a/plugins/multiedit/multiedit/documenthelper.py
+++ b/plugins/multiedit/multiedit/documenthelper.py
@@ -1028,8 +1028,7 @@ class DocumentHelper(Signals):
if not self._edit_points:
return
- atom = Gdk.atom_intern('CLIPBOARD', True)
- clipboard = Gtk.Clipboard.get_for_display(self._view.get_display(), atom)
+ clipboard = Gtk.Clipboard.get_for_display(self._view.get_display(), Gdk.SELECTION_CLIPBOARD)
self._paste_mark = self._buffer.create_mark(None, self._buffer.get_iter_at_mark(self._buffer.get_insert()), True)
clipboard.request_text(self.on_clipboard_text)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]