Commit graph

56 commits

Author SHA1 Message Date
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
Ernestas Kulik
4cd5df8aa7 release: prepare for 3.25.92 2017-09-03 00:17:04 +03:00
António Fernandes
21f7f42892 build: Raise gtk+ minimum version requirement
Since commit 1d166b5e3b we use the
function gtk_flow_box_get_child_at_pos, which was introduced in
gtk+ 3.22.6.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=786194
2017-08-12 13:56:43 +03:00
Carlos Soriano
b11a048565 release: Prepare for 3.25.90 2017-08-09 23:04:50 +02:00
Ernestas Kulik
9d0fae6ed4 meson.build: change project license version
https://bugzilla.gnome.org/show_bug.cgi?id=785062
2017-08-07 12:33:02 +03:00
Bastien Nocera
e367134de0 build: Make tracker a hard dependency
A large number of core features require Tracker to work, and many of the
new features using Tracker don't have any fallback support, failing to
build when Tracker is not available, so make tracker a hard requirement.

https://bugzilla.gnome.org/show_bug.cgi?id=784940
2017-07-18 03:25:03 +02:00
Bastien Nocera
4ac20d7b6a build: Fix tracker detection
Make sure that tracker-sparql is optional and auto-detected by default
and that tracker-sparql-1.0 is still supported.

https://bugzilla.gnome.org/show_bug.cgi?id=784940
2017-07-18 03:25:03 +02:00
Carlos Garnacho
d2d844414f build: Bump optional tracker dependency to 2.0
No code changes required. It remains API compatible with the current
usage in nautilus.
2017-06-28 23:41:21 +02:00
Carlos Soriano
53928d7f46 postinstall: Use python
Instead of shell scripts, much better to maintain.
Also, the new python script has better handling of non existing paths.
2017-05-02 19:50:54 +02:00
Carlos Soriano
ed07b5de52 release: Prepare for 3.25.1 2017-04-28 11:46:55 +02:00
Ernestas Kulik
9948131521 meson: delegate submodule initialization to Meson
As of 0.40.0, Meson has the ability to initialize subprojects that are
git submodules. This removes the need for a separate script to achieve
that.

https://bugzilla.gnome.org/show_bug.cgi?id=781653
2017-04-25 11:22:41 +03:00
Carlos Soriano
13c959d389 build: Update flatpak build and organize folder structure
Flatpak doesn't need to build meson or a patch for ninja and meson to
work properly:
https://github.com/flatpak/flatpak/issues/607
https://bugzilla.gnome.org/show_bug.cgi?id=774368
273e2460aa

This patch updates this and improves the folder structure with a
build-aux folder to clear up the root folder.

https://bugzilla.gnome.org/show_bug.cgi?id=780580
2017-03-27 12:14:47 +03:00
Ernestas Kulik
63a7e1ebad meson: actually use optional dependencies
EXIF and Exempi are currently only being detected due to an oversight.
This commit makes Meson define the preprocessor macros needed to use the
libraries.

https://bugzilla.gnome.org/show_bug.cgi?id=779879
2017-03-11 00:40:19 +02:00
Ernestas Kulik
f72f5f3c9d meson: move scripts to a directory
This commit moves scripts used in Meson to a separate directory to
declutter the root directory.

https://bugzilla.gnome.org/show_bug.cgi?id=779669
2017-03-08 17:52:01 +02:00
Ernestas Kulik
9419c26876 meson: compile gschemas after installing
As some users or developers might choose to install repo builds, they
would also have to compile the installed GSettings schema manually. This
commit adds a script that does that post-install.

https://bugzilla.gnome.org/show_bug.cgi?id=779669
2017-03-08 17:52:01 +02:00
Ernestas Kulik
dc57c21448 meson: update submodule only if it doesn’t exist
Some build servers don’t have git installed, which makes the tarball
build fail when trying to update the libgd submodule. This commit adds a
check for the existence of the root meson.build of libgd before running
git.

https://bugzilla.gnome.org/show_bug.cgi?id=779603
2017-03-06 17:43:22 +02:00
Carlos Soriano
06f0659e67 release: prepare for 3.23.91 2017-03-03 17:06:18 +01:00