[meld] meldapp: Mark clipboard targets to be kept after exit (#482)
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] meldapp: Mark clipboard targets to be kept after exit (#482)
- Date: Sun, 19 Jul 2020 00:26:02 +0000 (UTC)
commit 067681c6d7be0faf103157b21527c89a830376c8
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Jun 21 07:57:49 2020 +1000
meldapp: Mark clipboard targets to be kept after exit (#482)
Ideally we'd be more selective about what targets to keep, but there's
no good docs on what targets are actually expected/required, and it
appears to be common practice to simply store everything.
meld/meldapp.py | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/meld/meldapp.py b/meld/meldapp.py
index 386e01b2..e2e2fbf6 100644
--- a/meld/meldapp.py
+++ b/meld/meldapp.py
@@ -73,6 +73,10 @@ class MeldApp(Gtk.Application):
action.connect('activate', callback)
self.add_action(action)
+ # Keep clipboard contents after application exit
+ clip = Gtk.Clipboard.get_default(Gdk.Display.get_default())
+ clip.set_can_store(None)
+
self.new_window()
def do_activate(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]