Re: [PATCH] Bug 142227 & revealing selections in spatial windows



> So. It seems you have to extend the View interface with a
> reveal_selection() call then. Take a look at how the ScrollPositionable
> interface was added to NautilusView, and do something similar. Call it
> ExtendedView and add the reveal_selection call. Then add, say 15 or so
> methods like:
>                 void unimplemented1 ();
>                 void unimplemented2 ();
>                 void unimplemented3 ();
>                 void unimplemented4 ();
> 
> To the interface, so we can extend it compatibily (no change in epv
> size) in the future.

While trying to understand how to add a new interface, I grep'd for
'ScrollPositionable' in nautilus/libnautilus and these are the files I
get:
nautilus-scroll-positionable.c
nautilus-scroll-positionable.h
nautilus-view-component-common.c
nautilus-view-component.h
nautilus-view-component.idl
nautilus-view-component-skels.c
nautilus-view-component-stubs.c

Out of those, the helpful files seem to be nautilus-view-component.idl
and nautilus-view-component-stubs.c. Everything else is a bit
difficult to understand.
Any advice on which files I should be looking in, or some
documentation I can read?

Thanks!

Jimmy



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