Re: Tracking current file selection



On Mon, Mar 9, 2009 at 11:37 AM, Alexander Larsson <alexl 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].

    Marko

[0] http://standards.freedesktop.org/clipboards-spec/clipboards-0.1.txt


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]