Re: What is the official way to get an icon coordinates from a NautilusFile ?

Ok, I have a working implementation for bug #147994, I have attached the patch.
I have reused the files xstuff.c and xstuff.h from gnome-panel to
create the "zooming boxes" animation. It works pretty nicely, I think.
Please let me know what you think.

(I guess we should check the global "animation" variable to disable
this kind of stuff if the user doesn't want it...)


On 6/2/05, Alexander Larsson <alexl redhat com> wrote:
> On Wed, 2005-06-01 at 17:47 -0400, Vincent Noel wrote:
> > Hey all,
> > I'm trying to come up with a patch for bug #147994 - visual
> > notification when you double-click on something on your desktop (e.g.
> > the "zooming boxes" you get when you click a launcher on your panel).
> > In order to do this, I need to find the screen coordinates of the
> > selected icon in the active window - I've tried to get them using
> >    position_string = nautilus_file_get_metadata (file,
> > But it does not work (I get nonsense as a result).
> Yeah, the metadata is only used for manual placement mode, and its about
> the positioning in the icon container, not on the screen.
> > What is the good, official way to do this ?
> There is none at the moment. You'd have to create some.
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>  Alexander Larsson                                            Red Hat, Inc
>                    alexl redhat com    alla lysator liu se
> He's a witless native American jungle king from the Mississippi delta. She's a
> vivacious tomboy Valkyrie from a secret island of warrior women. They fight
> crime!

Attachment: patch
Description: Binary data

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