[kupfer] nautilusselection: Listen to "SelectionChanged" signal
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] nautilusselection: Listen to "SelectionChanged" signal
- Date: Sat, 29 Aug 2009 23:48:45 +0000 (UTC)
commit 589287d1f9358778b03827ba22357daea93c55cf
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Sun Aug 30 00:31:40 2009 +0200
nautilusselection: Listen to "SelectionChanged" signal
kupfer/plugin/nautilusselection.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/kupfer/plugin/nautilusselection.py b/kupfer/plugin/nautilusselection.py
index 9d747d0..7e8cc8a 100644
--- a/kupfer/plugin/nautilusselection.py
+++ b/kupfer/plugin/nautilusselection.py
@@ -35,6 +35,7 @@ class SelectionSource (Source, PicklingHelperMixin):
def unpickle_finish(self):
session_bus = dbus.Bus()
session_bus.add_signal_receiver(self._selected_signal,
+ "SelectionChanged",
dbus_interface="se.kaizer.KupferNautilusPlugin",
byte_arrays=True)
self._selection = []
@@ -43,10 +44,6 @@ class SelectionSource (Source, PicklingHelperMixin):
self._selection = selection
self.mark_for_update()
- def _clipboard_owner_changed(self, clipboard, event):
- self._text = clipboard.wait_for_text()
- self.mark_for_update()
-
def get_items(self):
if len(self._selection) == 1:
yield SelectedFile(self._selection[0])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]