On Mon, 2009-03-09 at 23:28 +0100, Marko Anastasov wrote: > On Mon, Mar 9, 2009 at 11:37 AM, Alexander Larsson <al...@redhat.com> wrote: > > On Sat, 2009-03-07 at 19:41 +0100, Marko Anastasov wrote: > >> Hi, > >> I've noticed a suggestion on how to implement a monitor of current file > >> selection in Nautilus, in #547479 [*]. That seemed quite straightforward, > >> however I only see the "owner-change" signal emitted when I copy a file > >> to clipboard. Does anybody have a tip on how to monitor the actual > >> selection? > >> > >> Marko > >> > >> [*] http://bugzilla.gnome.org/show_bug.cgi?id=547479 > > > > We do want to expose this via dbus some day (see other thread). > > I'm happy to hear that this is indeed going to happen eventually. > > > > > However, this workaround seems like it should work too. > > You want GDK_SELECTION_PRIMARY though, not CLIPBOARD. > > Unfortunately, it doesn't quite work as desired. A GDK_SELECTION_PRIMARY > clipboard, as far as I've noticed, tracks just mouse selections of text. > Later I read a confirmation on [0].
Ah, thats right. But CLIPBOARD will only track if you actually cut or copy things. So, I think you'll have to wait for the dbus support. -- nautilus-list mailing list nautilus-list@gnome.org http://mail.gnome.org/mailman/listinfo/nautilus-list