Commit graph

21 commits

Author SHA1 Message Date
Ernestas Kulik
10e840d223 desktop: initialize Exempi in main()
Opening the file properties window causes a crash with images that have
embedded XMP information. This is caused by not initializing the library
properly.

https://bugzilla.gnome.org/show_bug.cgi?id=785292
2017-08-07 13:51:33 +03:00
Ernestas Kulik
857a90c29b autotools: kill it
We’re moving to Meson this cycle, so this is losing some deadweight.

https://bugzilla.gnome.org/show_bug.cgi?id=780366
2017-03-22 17:18:29 +02:00
Alexandru Pandelea
0cab9f03eb desktop-canvas-view: fix crash on refresh
Refreshing the desktop makes nautilus-desktop crash.

The cause of this crash is that the desktop canvas view is a floating
reference. In commit 5c414bfcd1 the creation
of the desktop view was changed and it was forgotten to sink the floating
ref.

To fix this, remove the floating reference. The reason why the ref sink
is needed here, as well as in all the other views, is because the views
are also managed as data structures.

https://bugzilla.gnome.org/show_bug.cgi?id=779321
2017-03-03 17:06:18 +01:00
Ernestas Kulik
ed5652c89a general: add support for Meson
Since it’s 2017 already, Nautilus should use a build system that doesn’t
take longer to set up the build than it takes to actually build. An
observed build time using Ninja of roughly one-fifth of what it took
Autotools is more than reason enough to add support for Meson. Along
with that, this commit adds a convenience script to generate a tarball
for releases, since we use libgd as a submodule and Meson does not
handle source distributions.

https://bugzilla.gnome.org/show_bug.cgi?id=778167
2017-02-24 00:24:27 +02:00
Ernestas Kulik
728300331d general: drop git.mk
This commit removes git.mk and adds hand-written gitignore files. That
is needed to ignore build/, which is the directory of choice for Meson
builds.

https://bugzilla.gnome.org/show_bug.cgi?id=778167
2017-02-24 00:24:27 +02:00
Florian Müllner
2ce163549e desktop: Force X11 backend
At least for the time being, desktop icons are not supported on
wayland. This may or may not change, but in the meantime we can
still meet user expectations by forcing the supported backend
instead of failing with an unsupported one.

https://bugzilla.gnome.org/show_bug.cgi?id=748347
2016-12-08 15:01:21 +01:00
Carlos Soriano
0abaab1c44 general: adjust uncrustify style
https://bugzilla.gnome.org/show_bug.cgi?id=770564
2016-09-06 15:41:06 +02:00
Razvan Chitu
18915442e6 general: initialize smart pointers to NULL
https://bugzilla.gnome.org/show_bug.cgi?id=770609
2016-08-30 20:27:49 +03:00
Carlos Soriano
52d960542b general: run uncrustify
And make the style of Nautilus the same for all files.
Hopefully we can fix all the style issues we can find in the next days,
so expect a little of movement on this.

https://bugzilla.gnome.org/show_bug.cgi?id=770564
2016-08-29 18:37:10 +02:00
Alberts Muktupāvels
6162d19447 nautilus-desktop: initialize composited to TRUE
nautilus_desktop_window_composited_changed function will do nothing
if we use initial value from GdkScreen because of early return:
  if (window->details->composited == composited)
    return;

Change back initial value to TRUE to make sure that background will
be setup if screen is not composited.

https://bugzilla.gnome.org/show_bug.cgi?id=769360
2016-08-22 16:54:16 +03:00
Alberts Muktupāvels
e1649a3060 nautilus-desktop: draw background when screen is not composited
At least GNOME Flashback session with Metacity still can be used
without compositing manager. Since transparency is not available
nautilus currently draw black background.

Fix it by checking if compositing manager is running and if it is
not then get background surface from root window and draw it on
nautilus desktop window.

https://bugzilla.gnome.org/show_bug.cgi?id=769360
2016-08-19 12:57:06 +03:00
Ernestas Kulik
fc2139c117 Port from intltool
gettext has been continuously improving, up to a point where intltool
can be deprecated in favor of it. This commit ports the project files to
use upstream gettext.

https://bugzilla.gnome.org/show_bug.cgi?id=769362
2016-08-03 10:42:40 +03:00
Andrea Azzarone
315a55df33 desktop-canvas-view: scale desktop workarea
The problem is that in the function canvas_container_set_workarea the screen width
and height are in "application pixels" while the workarea ones are in "device
pixels" so when the scaling is > 1, the margins are not properly setted.

We need to scale-down the workarea geometries to "application pixels".

https://bugzilla.gnome.org/show_bug.cgi?id=769302
2016-08-01 18:00:08 +01:00
Neil Herald
bdcdbe67ff files-view: merge action and view menus
Usability tests conducted by Gina Dobrescu have highlighted a number of
issues with the toolbar menus. Users can't switch between list and grid
mode with a single click, and they have struggled to find the switch
between list and grid mode.

Allan Day has come up with a design to address these problems. The view
and action menus have been combined into a single menu, and we have
added a new button to the toolbar which toggles the view mode between
list and grid mode.

https://bugzilla.gnome.org/show_bug.cgi?id=764632
2016-06-22 23:38:22 +01:00
Carlos Soriano
70caf2a70a desktop-canvas-view: remove unneeded function declaration 2016-04-28 11:26:47 +02:00
Carlos Soriano
7e24f1b2a2 general: merge libnautilus-private to src
And fix make distcheck.

Although libnautilus-private seem self contained, it was actually
depending on the files on src/ for dnd.
Not only that, but files in libnautilus-private also were depending on
dnd files, which you can guess it's wrong.

Before the desktop split, this was working because the files were
distributed, but now was a problem since we reestructured the code, and
now nautilus being a library make distcheck stop working.

First solution was try to fix this inter dependency of files, but at
some point I realized that there was no real point on splitting some of
those files, because for example, is perfectly fine for dnd to need to
access the window functions, and it's perfectly fine for the widgets
in the private library to need to access to all dnd functions.

So seems to me the private library of nautilus is somehow an artificial
split, which provides more problems than solutions.

We needed libnautilus-private to have a private library that we could
isolate from extensions, but I don't think it worth given the problems
it provides, and also, this not so good logical split.
Right now, since with the desktop split we created a libnautilus to be
used by the desktop part of nautilus, extensions have access to all
the API of nautilus. We will think in future how this can be handled if
we want.

So for now, merge the libnautilus-private into src, and let's rethink
a better logic to split the code and the private parts of nautilus than
what we had.

Thanks a lot to Rafael Fonseca for helping in get this done.

https://bugzilla.gnome.org/show_bug.cgi?id=765543
2016-04-25 16:31:42 +02:00
Carlos Soriano
a93e1a5014 desktop: add command line options for override gsettings
Sometimes we want to override the show-desktop-icons gsettings, as we
were doing before splitting the desktop.

Wrongly I assumed that since it's a different binary, once can simply
run it or not, but of course that was an oversimplification, and forgot
all what I needed to do in order to support all the cases for the
desktop handling.

This patch adds the missing command line options we had, --force-desktop
and --no-desktop, and also adds the --force-desktop to the classic
desktop file, since we needed to enable the classic mode.

https://bugzilla.gnome.org/show_bug.cgi?id=765159
2016-04-22 15:50:35 +02:00
Carlos Soriano
9c17d8803d desktop-application: register with session manager
This is needed to make the desktop work, since this is started
in the DESKTOP phase of the session.

https://bugzilla.gnome.org/show_bug.cgi?id=765159
2016-04-22 15:50:35 +02:00
Carlos Soriano
73e10fadc9 desktop: move to a different folder
For a better structured hierarchy.

https://bugzilla.gnome.org/show_bug.cgi?id=712620
2016-04-15 20:12:01 +02:00
Carlos Soriano
d1a1c798e6 Revert "desktop: move to a different folder"
This reverts commit c9dcccae61.
2016-04-15 16:10:51 +02:00
Carlos Soriano
c9dcccae61 desktop: move to a different folder
For a better structured hierarchy.
2016-04-15 16:04:34 +02:00