Re: Where is the code for desktop windows?

Dear sir,
As suggested by you and Andre, I have got latest nautilus from git master and tried to install. As I am using Ubuntu9.10, latest Nautilus give following error:
command: $./configure

checking for BASE... configure: error: Package requirements (
    gtk+-3.0 >= 2.99.0
    glib-2.0 >= 2.27.5
) were not met:

No package 'gtk+-3.0' found
Requested 'glib-2.0 >= 2.27.5' but version of GLib is 2.22.3

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables BASE_CFLAGS
and BASE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
I tried to install gtk+-3.0 using apt-get, but not getting. says  "Couldn't find package gtk+-3.0"

Is it require ubuntu10?
Please guide to make further exploration.

Leena Chourey
On Mon, Jan 17, 2011 at 5:10 PM, Cosimo Cecchi <cosimoc gnome org> wrote:
On Fri, 2011-01-14 at 16:38 +0530, leena chourey wrote:

>       * Desktop is part of nautilus.  Frame named: x-nautilus-desktop
>         Is it?
>       * It is a GTK widget : frame  .    Is it?
>       * It displays content of desktop directory shown in file
>         manager?  Is it?
> Now how can I know, how nautilus renders desktop window, icon
> positions, method of icon display (row* column or pixel bases) and
> other details?
> I have downloaded the source code of nautilus-2.28.1 from gnome site
> and trying to understand the details. As explored and found that
> nautilus-desktop-window.c, .h can give useful things required.

Hi Leena,

Nautilus draws the desktop window by using a full-screen window on top
of the X root window, inside which it draws the background and the
desktop icons on top of it.

Most of the icon placement and rendering is done in
NautilusIconContainer, which in turn is an EelCanvas subclass (the icon
placement and rendering code is shared with the regular nautilus icon
view); other interesting pieces are (as they're called in git master,
some of these classes got recently renamed):
- NautilusDesktopWindow, which sets the window manager hint and
determines the right size for the full screen window to be drawn;
- NautilusDesktopIconView, which mostly sets the NautilusView properties
to be shown on the desktop
- NautilusDesktopBackground, uses GnomeBG to set the background on the

As Andre already suggested you, the best way to contribute to Nautilus
is to use code from git master; what exactly are you trying to do?


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