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



On Fri, 2004-10-22 at 00:06 -0700, Jimmy Do wrote:
> > 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?
> 
> Hehe, nautilus-scroll-positionable.[ch] is also helpful of course. :)
> 
> Just to clarify, I'm just wondering what files in particular would I
> need to modify/create. nautilus-view-component-common.c,
> nautilus-view-component.h, nautilus-view-component-skels.c seem pretty
> complex to modify (they contain all kinds of weird preprocessor
> directives with individual characters!).

Ah, the wonders of Bonobo. These files are auto-generated from the idl
file. All you need to do is add a new interface to the idl file, and
then write an c-wrapper for it like nautilus-scroll-positionable.[ch].

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a hate-fuelled sweet-toothed photographer on a mission from God. She's a 
disco-crazy Bolivian angel from the wrong side of the tracks. They fight 
crime! 




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