Florian Müllner
85ee8829bf
cleanup: Use format strings in meson.build
...
Those are a bit more concise than ''.format(), and have been
in meson for a long time.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/353 >
2024-10-20 22:23:28 +00:00
Florian Müllner
6df4905286
build: Use SPDX identifier for license
...
Meson strongly recommends to use SPDX identifiers for the license
string, and there's no reason for us to not do so.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/353 >
2024-10-20 22:23:28 +00:00
Florian Müllner
253ddb8642
extensions: Remove modelines
...
We already include an .editorconfig that is supported by many
editors, including emacs, so no need to repeat an emacs-specific
modeline in every source file.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/353 >
2024-10-20 22:23:28 +00:00
Florian Müllner
0ca156a2b6
Add .editorconfig
...
This should ensure that all editors which support
https://editorconfig.org/ use the correct indentation
with spaces (not tabs) by default.
This is hardly a full specification of our coding style,
but it's a correct subset and better than nothing.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/353 >
2024-10-20 22:23:28 +00:00
Fabio Tomat
7fc2bbb896
Update Friulian translation
2024-10-20 20:05:12 +00:00
Florian Müllner
eb4a17c2c8
docs: Mention code of conduct in README
...
All project interactions are subject to the code of conduct,
so it seems like a good idea to explicitly mention that in
the README.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/352 >
2024-10-19 03:03:37 +00:00
Florian Müllner
15ffbf147f
docs: Elaborate on issue reporting
...
We currently just link to the issue tracker without providing
any further guidance.
Improve on that by pointing to the appropriate handbook chapter,
point out extensions as a possible source of issues, and direct
users towards discourse/matrix for support/discussions.
Based on a similar section in gnome-shell's README.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/352 >
2024-10-19 03:03:37 +00:00
Florian Müllner
3201a1f8ac
docs: Add small introduction to extensions section
...
Directly starting the section with a long list doesn't look very
good :-)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/352 >
2024-10-19 03:03:37 +00:00
Florian Müllner
3f631c7398
docs: Add new "Ex-Extensions" subsection
...
It is odd that the first entry of the list of extensions refers
to an obsolete extension that was removed years ago.
Move it into a new "Ex-Extensions" subsection at the bottom of
the list.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/352 >
2024-10-19 03:03:37 +00:00
Florian Müllner
84fc1b671f
docs: Don't mention gsettings in auto-move description
...
The extension has included a preference dialog for a long time,
which is much more user-friendly than manually changing a
(relocatable!) gsetting.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/352 >
2024-10-19 03:03:37 +00:00
Florian Müllner
e41da8fcae
docs: Use user data theme dir in user-themes description
...
The XDG paths are preferred over the old `~/.themes`.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/352 >
2024-10-19 03:03:37 +00:00
Florian Müllner
6cfdd9db38
docs: Update list of extensions
...
The README has a list of extensions with a brief description, but
the most recent additions haven't been added yet. Rectify that.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/352 >
2024-10-19 03:03:37 +00:00
Florian Müllner
f12badc7aa
docs: Improve tone of support notice
...
Instead of a generic note about gnome-shell API stability and
extension compatibility in general, positively state what is
supported by the project.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/352 >
2024-10-19 03:03:37 +00:00
Florian Müllner
6e5cef8761
docs: Remove project wiki reference from README
...
The wiki is in the process of being retired, so we should stop
linking to it.
Death to the wiki!
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/352 >
2024-10-19 03:03:37 +00:00
Florian Müllner
0cb409f1c2
docs: Drop default branch section from README
...
It's been more than 3 years since we renamed the default branch,
people have probably got the message by now.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/352 >
2024-10-19 03:03:37 +00:00
Florian Müllner
2c922a6d3a
gitlab: Add issue templates
...
Providing templates is good practice, to guide users
towards more actionable reports.
This also gives us a place to point out where to
report issues with gnome-shell's extension system
or the website, and thus hopefully reducing the
number of misfiled issues.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/351 >
2024-10-19 04:50:13 +02:00
Florian Müllner
1088435120
build: Rename meson_options.txt to meson.options
...
The name is a bit cleaner, and has been the preferred option(!)
since meson 1.1.
Mutter recently updated the name, so follow suite.
The meson version bump shouldn't be an issue, given that several
hard dependencies like mutter and glib already require higher
versions.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/349 >
2024-10-18 17:29:27 +02:00
Florian Müllner
de6b9bf473
reuse: Use inline comments for markdown documents
...
Comments are hidden in gitlab, so including the copyright information
in the documents themselves doesn't get too much in the way.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/348 >
2024-10-18 00:32:58 +02:00
Florian Müllner
62e95e4b28
reuse: Use CC-BY-SA-4.0 for licensing project documentation
...
Writing and maintaining free-form documentation is non-trivial
work, and CC0 is therefore not the right license.
Reflect that by changing the license to CC-BY-SA and update the
list of copyright holders based on the files' git history.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/348 >
2024-10-18 00:32:58 +02:00
Florian Müllner
c8b54bdf25
docs: Remove obsolete sass submodule documentation
...
Thankfully the submodule is gone, so we don't have to document
how to updated it.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/348 >
2024-10-17 23:07:32 +02:00
Florian Müllner
46a4fa0976
cleanup: Use null for nick/blurb in ParamSpecs
...
As they are only used by gstreamer for gst-inspect & other tools.
Projects like mutter and gtk have already completely dropped them,
so follow their lead.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/347 >
2024-10-17 22:52:17 +02:00
Martin
97d64614af
Update Slovenian translation
2024-10-16 21:42:58 +00:00
Florian Müllner
8f75ccae34
export-zips: Use --destdir instead of custom prefix
...
meson skips some steps like schema compilation when DESTDIR is
set, so this is slightly more efficient.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/345 >
2024-10-16 16:46:15 +02:00
Florian Müllner
a81f4f4885
places-menu: Add nautilus-specific items
...
Both the "Starred" and "Network" locations are internal to nautilus
and not exposed to gvfs.
We can still support them by opening them explicitly in nautilus,
so add corresponding places if nautilus is installed and set up
as default file manager.
After this change, the list of places should be consistent with
the sidebar in the file manager again.
Closes: https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/issues/522
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/340 >
2024-10-16 14:38:09 +00:00
Florian Müllner
8a62e491a8
places-menu: Add "Trash" item
...
While much less prominent then "Recent", let's include it for
consistency with nautilus.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/340 >
2024-10-16 14:38:09 +00:00
Florian Müllner
8da874355c
places-menu: Add "Recent" item
...
Recent files are much more prominent in Nautilus nowadays, so it makes
sense to include it in the list of places.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/340 >
2024-10-16 14:38:09 +00:00
Florian Müllner
f0e7358de4
places-menu: Stop sorting special locations
...
Nautilus uses a fixed order rather than sorting items alphabetically,
so do the same.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/340 >
2024-10-16 14:38:09 +00:00
Florian Müllner
c4e344f1d7
places-menu: Drop user-special dirs
...
Nautilus no longer special-cases user directories, and instead
added them to the default bookmarks, so the user can customize
which they want to have displayed.
We already show bookmarked places, so just dropping the hard-coded
list gives us the same locations as nautilus.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/340 >
2024-10-16 14:38:09 +00:00
Florian Müllner
411da924a7
places-menu: Drop root location
...
Nautilus no longer exposes it, so stop including it here as well.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/340 >
2024-10-16 14:38:09 +00:00
Florian Müllner
60f30c5bbe
places-menu: Drop network item
...
Nautilus replaced its support for the `network:///` scheme with
an internal network view. The former now shows as empty folder,
so drop it from the list of places.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/340 >
2024-10-16 14:38:09 +00:00
Florian Müllner
1506a730c5
places-menu: Use Gio.File to check for equality
...
Strings may be different, but still refer to the same file
('/home/user' vs. '/home/user/', or even '/home/user/./').
Account for that by comparing files for equality rather than
paths.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/340 >
2024-10-16 14:38:09 +00:00
Florian Müllner
527ce99851
places-menu: Remove superfluous error handling
...
None of the constructors checks whether the file exists, so
there is no reason to check for `NOT_FOUND` errors.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/340 >
2024-10-16 14:38:09 +00:00
Florian Müllner
51ce4981c8
window-list: Add workspaces page to prefs
...
This brings back the workspace-previews setting, and adds the
ability to change the workspace names.
Given that those names are used as tooltips or preview titles,
it makes sense to allow editing them from the extension prefs
rather than relying on external tools (like dconf-editor).
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/344 >
2024-10-16 14:36:32 +02:00
Florian Müllner
63ea38a16d
window-list: Remove workspace-previews setting from prefs
...
We are about to include the workspace prefs page from the
workspace-indicator extension, which already includes
the setting.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/344 >
2024-10-16 14:36:32 +02:00
Florian Müllner
3bc06bb78f
window-list: Set title and icon on prefs page
...
Like the workspace prefs page, the existing window list prefs
should set title and icon for the view switcher.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/344 >
2024-10-16 14:36:32 +02:00
Florian Müllner
832cf0fc84
workspace-indicator: Set title and icon on prefs page
...
The window-list extension will add the workspace prefs as
additional page, so it needs a title and icon for the
view switcher.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/344 >
2024-10-16 14:36:32 +02:00
Florian Müllner
fc265fbe59
workspace-indicator: Don't mention "top bar" in prefs
...
The preferences will be shared with the window-list extension,
so avoid mentioning a specific placement.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/344 >
2024-10-16 14:36:32 +02:00
Florian Müllner
1459e3d6f9
workspace-indicator: Use Adw.EntryRow for workspace rows
...
Entries in lists are tricky, so best stick with default
patterns provided by libadwaita than rolling our own.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/344 >
2024-10-16 14:36:32 +02:00
Florian Müllner
e6bc9fc2fc
workspace-indicator: Use Adw.ButtonRow for new-item row
...
libadwaita added a dedicated widget for button rows, so let's
use that instead of rolling our own. While at it, promote the
accessible label to the (visible) title to be more in line with
current design patterns.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/344 >
2024-10-16 14:36:32 +02:00
Florian Müllner
2b4db8095e
workspace-indicator: Split out workspaces prefs page
...
The window-list extension already uses the extension code for
its embedded workspace indicator, this will allow it to do the
same for the preference page.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/344 >
2024-10-16 14:36:32 +02:00
Florian Müllner
fa3f9bcaee
window-list: Save and restore positions as runtime state
...
While it doesn't make sense for window list positions to be truly
persistent like dash items, some persistence is desirable.
Otherwise any manually set position is lost when the extension
is disabled, for example when locking the screen.
To address this, serialize the positions as runtime state on drop,
and restore them when populating the list.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/338 >
2024-10-16 12:19:52 +00:00
Florian Müllner
3f660ee973
window-list: Add id property to buttons
...
A string ID that uniquely identifies a button will allow to
serialize/deserialize the positions in the next commit.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/338 >
2024-10-16 12:19:52 +00:00
Florian Müllner
f87a25e913
window-list: Handle DND events near the drop target
...
Even with the previous change, the dragged actor has the tendency
of obscuring the possible drop target. To alleviate this, handle
DND events near drop targets as if they occurred on the target.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/338 >
2024-10-16 12:19:52 +00:00
Florian Müllner
228811b873
window-list: Shrink drag-actor size during drags
...
Like the previous commit, this helps with putting the focus on
the target location instead of the dragged item.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/338 >
2024-10-16 12:19:52 +00:00
Florian Müllner
9b34ac1eea
window-list: Fade out drag source during drag
...
During a drag operation, the focus is on the where to drop the dragged
item, not to identify it or its origin.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/338 >
2024-10-16 12:19:52 +00:00
Jakub Steiner
a725361fc9
window-list: Indicate drop target more prominently
...
The drop target is the main focus of the drag operation, so make
its styling more prominent.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/338 >
2024-10-16 12:19:52 +00:00
Florian Müllner
3461a0523c
window-list: Allow rearranging window buttons
...
We currently sort buttons by the stable sequence to get a persistent
and predictable order. However some users want to customize that
order, and rearrange the buttons as they see fit.
Support that use case by implementing drag-and-drop behavior based
on the overview's dash.
Closes https://gitlab.gnome.org/GNOME/gnome-shell-extensions/issues/4
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/338 >
2024-10-16 12:19:52 +00:00
Florian Müllner
911387bc49
window-list: Rename XDND related methods and props
...
The window list buttons themselves will become draggable, so
include "xdnd" in the existing drag handling to disambiguate
it.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/338 >
2024-10-16 12:19:52 +00:00
Florian Müllner
93a75dccd7
window-list: Split out _createTitleActor() hook
...
This will allow creating a suitable drag actor that matches the
current title. In particular this allows for a drag actor that
isn't based on `ClutterClone`, and therefore doesn't inherit
focus/active/minimize/etc. styles that don't make sense outside
the actual window list.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/338 >
2024-10-16 12:19:52 +00:00
Florian Müllner
763d66b827
window-list: Add TitleWidget:abstract-label property
...
When true, the real label is replaced by a more abstract
representation. When used as drag actor, the focus is not
on identifying the window/app, but about picking a drop
location, and the reduced style helps with that.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/338 >
2024-10-16 12:19:52 +00:00