Commit graph

20946 commits

Author SHA1 Message Date
António Fernandes 443a7ed5bf flatpak: Update dependency modules source URLs
The YAML files already use the gitlab URLs, while the json doesn't.

The gnome-apps-nightly build script reads the json file, and the
builds have been failing because of this.

Update the json file accordingly.

Closes https://gitlab.gnome.org/GNOME/nautilus/issues/485
2018-06-12 22:34:57 +01:00
Carlos Soriano 09f00407eb Meson: Make sure _GNU_SOURCE is set
_GNU_SOURCE is required to be able to use POSIX functions that are not
available on non-Linux system. Specifically, we use sys/types for
requesting user accounts with getpwent and similars.

Usually systems seems to compile with this set, however some systems
like RHEL doesn't assume it so.

Since this is more correct to set it explicitly, this commit does that
by passing an argument to meson project.
2018-06-12 09:14:45 +00:00
Carlos Soriano 41ab60dfa0 file: Make sure we include necessary headers
setpwent is used but we didn't include the necessary headers.

It was building in Fedora because some other header included it,
but that's not the case in RHEL.
2018-06-12 09:14:44 +00:00
Carlos Soriano b42ffe73a6 meson: Request c11 when possible
So we make sure that systems that have this default to something older
like c89 like RHEL can build it properly.
2018-06-12 09:14:41 +00:00
Carlos Soriano 653691ca60 Bug.md: Use raw file 2018-06-12 08:12:55 +00:00
Carlos Soriano b82f4a3848 Bug.md: Use GitLab URL
And explain that the file has to be saved as a flatpakref file.
2018-06-12 07:48:57 +00:00
Jordi Mas 99eea9f4a3 Update Catalan translation 2018-06-11 19:28:50 +02:00
Ernestas Kulik c308e98532 .gitmodules: Change libgd URL to GitLab one 2018-06-09 22:52:34 +03:00
George Mocanu 3a7ebc2b76 list-view: Remove useless variables
Since 13a8d3efac
there is no need for some variables.

The removed variables were used to distinguish between single or
double click. This is no longer needed as GTK3 offers support
for this through gestures.

This patch removes those variables.
2018-06-07 11:52:36 +00:00
George Mocanu db8a8d6c16 list-view: Fix middle-click behaviour
Currently, for double-click mode, middle-clicking a folder in
List View fails to open a new tab, but only highlights the
selection instead. Middle-clicking the folder again opens it
in a new tab.

For double-click mode, middle-clicking a folder should open it
in a new tab. Also, middle-clicking a file should open it.

This patch fixes this behaviour.

Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/453
2018-06-07 11:52:36 +00:00
Carlos Soriano cebcab8ad7 CI: OpenSuse, add gsettings-desktop-schemas 2018-06-06 09:58:39 +00:00
Wong Heung Sang 44601d99ba nautilus-file-utilities: Add GVolumeMonitor auto cleanup
In nautilus_get_mounted_mount_for_root
g_volume_monitor_get is called
without cleanup

We need cleanup or auto cleanup
for GVolumeMonitor

g_autoptr is added for auto cleanup

Closes https://gitlab.gnome.org/GNOME/nautilus/issues/471
2018-06-02 20:13:33 +00:00
Ting-Wei Lan 816ee3d5f3 build: Make seccomp and bubblewrap optional
Both seccomp and bubblewrap are specific to Linux, so we should make it
optional to keep Nautilus working on non-Linux systems.
2018-06-03 00:00:49 +08:00
Gun Chleoc 813a469d44 Update Scottish Gaelic translation
(cherry picked from commit 0fdf0d2f8c)
2018-06-01 09:41:39 +00:00
Alexandre Franke 289f08f8c1 Update French translation 2018-05-31 15:05:01 +00:00
Ernestas Kulik 75d73cf466 canvas-dnd: Don’t set removed properties
NautilusSelectionCanvasItem lost a few properties that control the way
the selection rectangle is drawn, namely the color and
stippling-enabling ones, which results in different rendering of the
file outlines when dragging multiple of them. At the moment, the
outlines are styled according to GTK_STYLE_CLASS_RUBBERBAND, which gives
them solid blue-ish borders and a light blue background.

This commit removes the code that sets those properties.
2018-05-31 13:35:19 +03:00
Ernestas Kulik 049a0ee13e canvas-container: Remove style property
Since style properties are a thing of the past and we never enable label
prelighting, this one can be safely put away.
2018-05-31 13:35:19 +03:00
Ernestas Kulik e8c6e544c7 list-view: Perform DnD using gesture
Since claiming the event sequence in the button press handler makes the
::motion-notify-event not fire, there is not much choice.
2018-05-31 13:35:19 +03:00
Ernestas Kulik 4f2c311911 list-view: Fix input handling
This takes care of a couple of things:
    - not claiming the sequence at the end of the button press handler
      breaks ctrl-clicking;
    - chaining up to button_press_event() in some cases is superfluous;
    - chaining up to button_press_event() instead of propagating the
      event down breaks expanders.
2018-05-31 13:35:19 +03:00
Ernestas Kulik 20afa56cb5 list-view: Guard against null event in ::released
Until 3.22.31 or 3.24.0 is released with
4d2b39d98c,
this will act as a workaround for ::released being emitted after ::cancel due
to a grab.
2018-05-31 13:35:16 +03:00
Ernestas Kulik 487213ad9b canvas-item: Drop gtk_style_context_get_background_color()
Even though more convoluted than the previous solution, this one
should last longer. Canvas item icons are now colorized by first drawing
the background to a Cairo surface and then multiplying the color values
of the original icon pixbuf and the ones from the newly created one.
2018-05-30 11:39:13 +03:00
Carlos Soriano ad18383afd CI: Add libseccomp to Rawhide 2018-05-30 07:37:43 +00:00
Carlos Soriano 8a01e477b6 CI: Rename cross_distro
To cross_environment, since now we have some Flatpak too.
2018-05-29 06:30:35 +00:00
Carlos Soriano 0994474acc Flatpak: Update exiv2 upstream url and build system 2018-05-28 19:50:08 +00:00
Carlos Soriano 6daacbec2e CI: Test weekly all master of dependencies
So we test the ecosystem regularly.
2018-05-28 19:50:08 +00:00
Carlos Soriano b496a4cb3e CI: Use non-master dependencies for regular operations
See previous commit for more info.
2018-05-28 19:50:08 +00:00
Carlos Soriano d945455178 Flatpak: Separate master dependencies from stable
So far we have been building master of all of our dependencies, also
master of the Sdk. This is good for testing the next version of the
ecosystem, but has many downsides that we now can avoid with Flatpak.

For instance, we want to be buildable at any point in the history,
specially when doing bisects. Also, we need to be a bit stable so that
when designers, users or others build the latest Nautilus they are able
to work with it regardless of its dependencies on other projects.

Even more, now with CI we can test the master of the ecosystem regularly
while not affecting our regular development and operations by depending
on that.

So let's separate in two different manifests the development version
with stable dependencies, intended for our regular operations, and a
development version with all the ecosystem on master, to test the
ecosystem regularly on the CI or on-demand locally.
2018-05-28 19:50:08 +00:00
Ernestas Kulik 35536fdea8 general: Stop relying on side effect in warning macros
The expression will not be evaluated if the macros are disabled.
2018-05-28 13:13:56 +03:00
Ernestas Kulik fc4cbbe647 location-entry: Handle less-deprecated signals
::event-after is obsolete and ::key-press-event is getting there, too.
2018-05-28 13:13:56 +03:00
Ernestas Kulik ad15b58c77 location-entry: Handle focus changes in ::notify::has-focus 2018-05-28 13:13:56 +03:00
Ernestas Kulik 34c9fcb2f7 pathbar: Handle scroll events in generic event signal handler 2018-05-28 13:13:56 +03:00
Ernestas Kulik 578b67a719 container-max-width: Add missing break statement 2018-05-28 13:13:56 +03:00
Ernestas Kulik 8eb0b0d378 files-view: Handle key presses in generic event signal handler 2018-05-28 13:13:56 +03:00
Ernestas Kulik 2e62e2def6 window: Use GdkEvent accessors 2018-05-28 13:13:56 +03:00
Ernestas Kulik ebac1a33d2 window: Use notify signal to handle state changes
::window-state-event is gone.
2018-05-28 13:13:56 +03:00
Ernestas Kulik d6f1fa6128 window: Handle button presses using a gesture 2018-05-28 13:13:56 +03:00
Ernestas Kulik 11d7e5c129 window: Make type final
After removing the desktop window, this type is no longer derived.
2018-05-28 13:13:56 +03:00
Ernestas Kulik 0a6e406344 eel: Remove superfluous include
gdk/gdkprivate.h is no longer a thing in GTK+ 4 and doesn’t seem to be
at all required.
2018-05-28 13:13:56 +03:00
Ernestas Kulik dde1a81b85 selection-canvas-item: Use GTK+ to draw rubber band
This commit also drops properties that no longer apply, including border
width - it’s controlled by the theme.
2018-05-28 13:13:56 +03:00
Ernestas Kulik 197d2d1d6b pathbar: Drop composite child API
Easiest fix so far.
2018-05-28 13:13:56 +03:00
Ernestas Kulik c38834973c floating-bar: Stop handling ::enter-notify-event
And replace it with a handler for ::event.
2018-05-28 13:13:56 +03:00
Ernestas Kulik f692a93ddf list-view: Merge event and key-press-event handlers 2018-05-28 13:13:56 +03:00
Ernestas Kulik c8998da860 mime-actions: Stop handling delete-event
Docs say that a response signal is emitted automagically when such an
event is received.
2018-05-28 13:13:56 +03:00
Ernestas Kulik a781e5aee3 general: Stop setting WM class
According to GTK+ docs, this should be the same for all windows of an
application, and GTK+ defaults to doing that itself. However, there is a
slight issue in that the properties window sets a custom window icon
that isn’t reset instantaneously after closing the dialog.
2018-05-28 13:13:56 +03:00
Ernestas Kulik 2507db5aba properties-window: Use “notify” signal instead of focus events 2018-05-28 13:13:56 +03:00
Ernestas Kulik 3cf82d89da query-editor: Make type final
It’s not derived anywhere, and thus it shouldn’t be derivable.
2018-05-28 13:13:56 +03:00
Ernestas Kulik 485b746620 query-editor: Remove key-press-event handler
With the query editor being inside the header bar now, switching focus
to the content view no longer works.
2018-05-28 13:13:56 +03:00
Ernestas Kulik 238004b9d8 query-editor: Include types header
NautilusQueryEditor is only mentioned in passing, this will do just as
fine.
2018-05-28 13:13:56 +03:00
Ernestas Kulik 260b4f7a09 search-popover: Fix signal parameter types 2018-05-28 13:13:56 +03:00
Ernestas Kulik 7077841501 rename-file-popover-controller: Stop using key-press-event 2018-05-28 13:13:52 +03:00