Commit graph

72 commits

Author SHA1 Message Date
Ernestas Kulik
4c2e9da9a9 meson.build: Pass -Wno-error=maybe-uninitialized
The nightly flatpak builds after
ce54a25275
fail due to an unfortunate combination of compiler flags. This commit
disables the error, since it’s rather inconsistent when the warning is
spit out.
2018-10-31 21:47:59 +01:00
Ernestas Kulik
62e6db2767 meson.build: Only warn when seccomp support is disabled 2018-10-09 15:36:37 +03:00
Ernestas Kulik
942429b133 meson.build: Use set instead of set10
Since we only care about whether those macros are defined, we can use
set to save a few lines.
2018-10-09 11:01:37 +03:00
Ernestas Kulik
e97155f1d1 meson.build: Remove libseccomp dependency where unsupported
A number of CPU architectures are unsupported as far as seccomp goes.
This commit expands the current restriction to Linux by checking the
host CPU.
2018-10-09 11:01:37 +03:00
Ernestas Kulik
0718606dca meson.build: Enable -Werror=incompatible-pointer-types 2018-10-09 07:29:41 +00:00
Carlos Soriano
437992efcd meson: Bump version
Seems we use 0.47 features.

Closes https://gitlab.gnome.org/GNOME/nautilus/issues/612
2018-09-05 10:46:45 +00:00
Carlos Soriano
fb4fe5c705 release: Prepare for 3.30.0 2018-09-03 19:31:11 +02:00
Ernestas Kulik
db92b6a6cf Prepare for 3.29.92 2018-08-29 18:33:49 +03:00
Carlos Soriano
dde5d529d0 meson: Bump version 2018-07-26 21:23:12 +02:00
Ernestas Kulik
67b6843130 meson.build: Fix application ID
application_id is referenced in data/meson.build, so it’ll be less
annoying to append the profile to it as well.
2018-07-14 15:11:05 +03:00
Ernestas Kulik
a9b76916e4 meson.build: Tidy sections up
Now sections (and their boundaries) are more visible, and maybe the file
is more readable all around.
2018-07-14 13:35:24 +03:00
Carlos Soriano
d31b8b59de general: Assume development profile if app id is not Nautilus
Instead of checking explicitly for some options, we allow any value as
profile and assume is a development snapshot.

This will help with having Flatpak bundles/refs of different branches
with different purposes.
2018-07-14 11:33:57 +02: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
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
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
Ernestas Kulik
894cda329c build: Warn on duplicate conditions in conditional statements
Since we’re handling duplicate branches, this makes sense.
2018-05-28 12:59:33 +03:00
Ernestas Kulik
81c4c0d175 meson.build: Enable deprecation warnings 2018-05-22 16:52:49 +03:00
Ernestas Kulik
bde55f4189 eel: Remove a11y utilities
In theory, it would be possible to just drop the GAIL code and keep the
header, but, given that NautilusCanvasItem is the only remaining
consumer, the needed bits can be moved over.
2018-05-22 16:52:48 +03:00
Ernestas Kulik
673c81cf9f general: Copy gnome-desktop thumbnailing code
This is one of prerequisite steps to take before fully switching to GTK+
4, as gnome-desktop has code, depending on GTK+ 3. Since the
thumbnailing machinery is self-contained, it can easily be just copied
over.
2018-05-22 16:52:48 +03:00
Ernestas Kulik
feb69b4979 build: Use install_data() to rename icons
Since 0.46.0, Meson allows renaming files when installing them. This is
useful to replace any workarounds to achieve the same (namely, the
icons).
2018-04-28 20:22:11 +03:00
Christophe Fergeau
1358dc6beb build: Fix libm detection
find_library expects the library name without the 'lib' prefix,
otherwise it will be looking for "liblibm"
2018-03-30 12:51:46 +02:00
Alexandru Fazakas
315d14585b list-view: Make list view selection consistent
Selecting rows using CTRL/SHIFT with left click is different
to right click as GtkTreeView's default code does not support
SHIFT+CTRL selection.

We want consistency between the two behaviours.

We fixed this by replicating the left click behaviour in the
right click case. The GTK dependency is also bumped in order
to use GtkTreePath autocleanup.
2018-03-21 23:57:56 +02:00
Ernestas Kulik
b1be1fc680 meson.build: use project version instead of hardcoding it
This will make it one less thing to change when branching.
2018-03-19 14:17:22 +02:00
Ernestas Kulik
b85eb89891 meson.build: Always try to append revision to version
The code falls back to a controlled string, so tarballs builds don’t
ruin everything.
2018-03-19 13:22:04 +02:00
Ernestas Kulik
df583c2e4a general: Allow running in separate instance
When hacking on Nautilus, it is very inconvenient to have to close any
running instance before running the built version. This commit enables
running three different instances by changing the application ID.
Beside the default “profile” is one crafted for stable flatpak
releases and one for development. The stable flatpak profile adds an
identifying mark to the about dialog to aid collecting information in
bug reports. The development profile is that plus additional styling to
help visually identify the development instance. It also will be used
when generating Flatpak bundles with the help of CI.

Generally, the implementation is slightly hacky to allow all the
different workflows, spanning from regular installations to GNOME
Builder flatpak builds, as each comes with its own quirks.
2018-03-18 22:28:08 +02:00
Ernestas Kulik
510a8303dd build: make all tests optional
This can help cut down on link times a bit when working on things.
2018-03-16 06:22:36 +02:00
Ernestas Kulik
c10130c034 release: prepare for 3.28.0 2018-03-13 07:10:57 +02:00
Ernestas Kulik
a2f01b3825 release: prepare for 3.27.92.1
Hope this is the last one.
2018-03-06 00:17:24 +02:00
Ernestas Kulik
9ff12e580a release: prepare for 3.27.92 2018-03-05 11:26:49 +02:00
Ernestas Kulik
f237658a8a meson.build: add a set of warnings
This commit adds a set of warnings that will always be used and makes
some of them hard errors to help write code that is less bug-prone.
2018-03-01 08:37:49 +00:00
Alexandru Fazakas
5da4acab69 files-view: Avoid leaking selection list and data
Sometimes, while working with the files_view_get_selection function, the
freeing is not done properly. We leak a lot of objects as of this and we
need a way to fix it.

To avoid leaking, we implemented g_autoptr support for NautilusFile in order
to have at our disposal automatic, deep cleanup whenever we use the function.

In this patch, we changed all calls to use g_autolist appropriately and bumped
the glib dependency up to 2.55.1 (in order for us to use g_autolist).

Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/226
2018-02-27 07:06:57 +02:00
Michael Catanzaro
bf4c431b45 Bump version number
This is needed so that clients of libnautilus-extension can depend on
the new version.
2018-02-12 16:15:05 -06:00
Ernestas Kulik
6934578ebf sendto-extension: move under extensions/
Now that the image property page is an extension, both extensions can be
held under the same subdirectory. This commit also makes the image
property extension optional.
2018-02-09 06:32:38 +02:00
Ernestas Kulik
14ee0f1cdc general: reimplement image properties as an extension
The image property page is already implemented using the extension API,
but it’s not an extension and relies on a library that is not essential
to Nautilus. This commit builds the image properties as an extension and
introduces some minor refactoring to the code.
2018-02-09 06:32:38 +02:00
Ernestas Kulik
2128efccae nautilus-extension: use Meson to generate pkgconfig file
Currently, the pkgconfig file for nautilus-extension is generated by
substituting variables in a template file. That is prone to mistakes and
requires manual tracking of dependencies. Using the pkgconfig module
from Meson helps automate much of the process.
2018-02-09 06:32:38 +02:00
Carlos Soriano
4cece76105 Release: Prepare for 3.27.4 2018-01-30 14:39:31 +01:00
Ernestas Kulik
01352d3b22 build: drop use of disabler object
Should have read docs more carefully. An empty array does the trick just
as well, with the side effect of not breaking builds.
2018-01-04 17:35:51 +02:00
Ernestas Kulik
9cfa5dd275 build: drop support for tracker-sparql-1.0
tracker-sparql-2.0 should be available in all distros, which are going
to offer GNOME 3.28.

Closes #186.
2018-01-04 10:18:55 +02:00
Ernestas Kulik
983892a656 build: general cleanups
This commit does the following:
  * Canonicalize the style:
    * Use two-space indentations.
    * Un-Autotools-ify option names.
    * Don’t align arguments, simply increase indentation.
    * Don’t add a space before opening parenthesis in calls.
  * Remove unused variables.
  * Remove unused dependencies.
  * Remove config.h.meson.
  * Optimize dependencies.
  * Use disabler functionality for libselinux dependency, to save lines.
2018-01-02 12:51:32 +02:00
Ernestas Kulik
74dd9c9f72 general: remove desktop support 2018-01-02 12:51:32 +02:00
António Fernandes
2ea3a8ccb8 general: Get key values from gdk/gdkkeysyms.h, not X11/XF86keysym.h
We already included gdk/gdkkeysyms.h, which is generated from
X11/XF86keysym.h

Doing this, we can drop the ifdefs. Also, revert the build
configuration introduced in 2c5882aaff.
2017-12-14 10:31:11 +00:00
Ernestas Kulik
ddca5f532a meson.build: bump GTK+ version requirement
Starred locations in GtkPlacesSidebar are only available in 3.22.26
onward.

https://bugzilla.gnome.org/show_bug.cgi?id=786039
2017-12-08 15:24:15 +02:00
António Fernandes
bdd1c3b0ae build: Fix indent style 2017-11-29 18:01:07 +00:00
António Fernandes
2c5882aaff build: Detect X11/XF86keysym.h to enable extra keys
Support for special keyboard keys for actions such as Back,
Forward, Refresh, Go Home, etc. depends on this header.

We used to check for this header in configure.ac but
this was lost when porting from autotools to meson
(commit 857a90c2).

Restore this support by checking for this header with meson.

Fixes #134
2017-11-29 17:36:08 +00:00
Jeremy Bicha
5d75a4a5bc build: Install appstream metadata to non-deprecated location 2017-11-26 18:52:09 -05:00
Carlos Soriano
23eacd3155 general: Remove exempi and exempi-xmp
Since now we use gexiv2 these are not longer necessary.
2017-11-20 15:43:45 +01:00
Carlos Soriano
1d2a80c913 Merge branch 'gexiv2-switch' into 'master'
image-properties-page: Use gexiv2 for metadata

See merge request GNOME/nautilus!5
2017-11-20 11:40:22 +00:00
Carlos Soriano
aa6528699a Release: Prepare for 3.27.2 2017-11-13 18:06:54 +01:00
Thomas Bechtold
ffe6626ed3 image-properties-page: Use gexiv2 for metadata
Instead of using exif and and exempi for handling image metadata, use
gexiv2 for both.
This simplifies the code a lot and also makes it easy to add new tags
when needed.
Also cleanup a bit the currently displayed tags.

Note: gexiv2 is now a hard dependency when building nautilus.
2017-10-07 10:22:08 +02:00
Carlos Soriano
69942c754e release: Prepare for 3.26.0 2017-09-12 15:47:29 +02:00