Commit graph

851 commits

Author SHA1 Message Date
Hari Rana
d9970d4f27 flatpak: Suffix app ID with .Devel
This commit changes the app ID from `org.gnome.SettingsDevel` to `org.gnome.Settings.Devel`, as recommended by the GNOME Developer Documentation - https://developer.gnome.org/documentation/tutorials/application-id.html#application-id-for-flatpak-development.

Additionally, some changes have been made in the buildsystem, to properly substitute the app ID depending on the profile in use.
2024-03-21 16:14:31 +00:00
Matthijs Velsink
32ccbab789 shell: All search words must match to find row
Now that we match against all words in the query, if any of them matches
with a row it is "found".

However, it is more useful if all of the words must match, as narrowing
down the results is much quicker that way.
2024-03-15 11:34:14 +00:00
Matthijs Velsink
394abe8cb3 shell: Do not match on empty strings
Splitting the search query on spaces results in empty strings if there
are double spaces in the query. These would always match.

Therefore, do not do anything with empty search words.
2024-03-15 11:34:14 +00:00
Matthijs Velsink
60794dfeda shell: Split search entry only once
There is no need to split a search entry for every row we want to match,
we can do it once when the search entry is updated.
2024-03-15 11:34:14 +00:00
Felipe Borges
216368db4b shell: Display search results for multiple query words
Before, queries like "remote desktop" were going through g_strstrip()
and turning alternative matches to "remote" or "desktop" unreachable.

See #2763
2024-03-15 11:34:14 +00:00
Felipe Borges
d62f048058 shell: Add CcShell.subpage string property 2024-03-12 10:03:07 +01:00
Felipe Borges
ec280a8755 shell-model, panel-loader: Add CC_CATEGORY_PRIVACY
This is supposed to classify pages that belong in the Privacy panel.
2024-03-12 09:42:14 +01:00
Automeris naranja
6d8edb80dc apps: Use AdwStatusPage when showing "No Apps Found"
The scrolling bug described in [1] and [2] doesn't
happen anymore. Apparently this was fixed in [3],
which stopped wrapping the status page inside
a GtkListBox.

Use AdwStatusPage again, since it makes the code
simpler.

[1] 1ae2c5295c
[2] https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/989#note_1837249
[3] e2b4896287
2024-03-11 16:12:16 +00:00
Matthijs Velsink
58c1e8fc47 metainfo: Update and add URLs
Initiatives#51 proposes to update and unify links in metainfo for GNOME
apps. We were using the old wiki link for translation and did not use
the welcome.gnome.org page for contributors.

Fix and add these links.

Closes #2938
2024-03-06 11:39:52 +00:00
Sophie Herold
fbb93a4dab metainfo: Fix wrong developer id
Appstream decided to use reversed domains. Please merge before 46 if possible.
2024-03-01 09:09:43 +00:00
Automeris naranja
0aeb0b55a7 general: Add translator comments about the "Search" term
Clarify in which occasions this term should be
phrased as a verb or as a noun.

Partially fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2903
2024-02-29 13:48:20 +00:00
Automeris naranja
7dac08c29e cc-window: Minor cleanups/changes
- Remove a11y labels from buttons that
have tooltips, since Orca also reads tooltips
- Remove the .image-button style class, since
it's automatically added if a GtkMenuButton has
an icon[1]
- In property names that have more than 1 word,
use a hyphen minus symbol to separate the words
instead of an underscore

[1] https://docs.gtk.org/gtk4/class.MenuButton.html
2024-02-29 10:13:37 +00:00
Felipe Borges
d2b40f8dee shell: Load subpages in the CcShellModel
Setting their visibility only as search results.
2024-02-27 16:04:00 +00:00
Felipe Borges
049ac874ff shell, panel-list, window: Propagate subpage info
When the row is a subpage it has a parent_id, which should be activated
instead of panel_id. So we construct a parameters GVariant so that
panels can handle it.
2024-02-27 16:04:00 +00:00
Felipe Borges
8ea7a87168 shell-model, panel-loader: Add CC_CATEGORY_SYSTEM
This is supposed to classify pages that belong in the System panel.
2024-02-27 16:04:00 +00:00
Bastien Nocera
5748c50f44 shell: Fix typo in variable name
ellapsed -> elapsed
2024-02-05 10:59:13 +00:00
velsinki
6fba003ec9 shell: Don't set release notes on About window
Since !2212, the version for the about window is taken from the build
system. Since release notes in the appdata file can be outdated or
incomplete, showing them in the About window is not really needed.

So, don't set any release notes version, which also fixes a critical
warning when the version does not have release notes in the appdata
file.

Fixes #2779
2024-01-31 11:44:26 +01:00
Felipe Borges
0c04d14a36 shell: Show correct version in About dialog for development branches
Our AdwAboutWindow is initialized with values loaded from from the
appdata file. For development versions we often don't add appdata
info, causing AdwAboutWindow to fallback to the latest version
available in the appdata file.

This should not occur in a stable branch, but this occurs in
development branches.

Let's always call adw_about_window_set_version() so that we guarantee
that the right verion number is shown in the UI.

Fixes #2779
2024-01-30 17:20:16 +00:00
Felipe Borges
8def72a266 common: Introduce CcHostname
This object allows for panels to interact with systemd-hostnamed over
DBus using a simple API that abstracts the GVariant and DBus specifics
involved.
2024-01-30 13:34:10 +00:00
Felipe Borges
1c0fef5718 panel-list: Reorder panel list
This also drops the Categories as a criteria for creating the sidebar
list separators. Now the "panel_order" array will include entries named
"separator" to indicate where a separator should go.

See https://hedgedoc.gnome.org/FLcx6argT6uycE3An7uaxw
2024-01-22 09:47:00 +00:00
Sabri Ünal
1d1f95bb4d appdata: Improve appdata for AppStream 1.0
- Add the `<developer><name>` tag
- Mark the `<developer_name>` tag as deprecated
- Add appstreamcli validation
- Fix release version warnings
- Remove one of the custom Purism tag to pass the validation test
2024-01-08 15:48:19 +00:00
Hari Rana
03f7a6c8f0 about: Set copyright holder
The copyright year was retrieved by running `git log --reverse`, and picking the first commit (3c03b47392).
2024-01-08 14:01:51 +00:00
Felipe Borges
d52ec68f8d system: Add "Users" panel
This moves the UserAccounts panel to a page in the System panel.

This simplifies a lot of the existing code in the UserAccounts panel.

I did minimal changes to the sub dialogs so that those can be touched
in following changes, making it easier to review this one alone.

The main panel widget is now CcUsersPage, and is an AdwNavigationView
widget that has a default "current_user_page" page. Each page is a
CcUserPage (careful with the one-character difference between these
two classes).

Each CcUserPage has an associated ActUser object.
2024-01-08 13:59:26 +01:00
Hari Rana
2a75af4d48 primary-menu: Add mnemonics 2024-01-02 08:58:13 +00:00
Felipe Borges
a6538b26e1 appdata: Add "help" address
So that we can show the "Support Questions" row in AdwAboutWindow.
2023-12-01 13:06:43 +01:00
Felipe Borges
ff9dc202a7 shell: Add translator-credits string to About dialog
This mechanism will allow for translations to propagate their
credits to the UI.
2023-12-01 13:06:41 +01:00
Felipe Borges
24435a6178 appdata: Use GPL-2.0-or-later for license
GPL-2.0+ is a deprecated SPDX id.

This way AdwAboutWindow can use the license field to populate
the "Legal" page of the About dialog.
See https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/2071#note_1932772
2023-12-01 13:04:58 +01:00
Felipe Borges
52638c9f46 shell: Add About dialog
Fixes #834
2023-12-01 13:00:00 +01:00
Automeris naranja
c3bcaa4559 style: Add styling for custom status page 2023-11-29 10:17:47 +00:00
Felipe Borges
71ea77dc2d shell: Check for unsupported environments after handling --version
So that remote connections can run gnome-control-center --version for
debugging purposes.

Fixes #2739
2023-11-29 10:07:47 +00:00
Maximiliano Sandoval R
52a78a5404 window: Set the main window height request to 294
This is the size you get on a mobile screen on landscape mode. See
https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/migrating-to-breakpoints.html.
2023-11-24 09:42:17 +00:00
Hari Rana
9e9f7c4633 warning: Port warning dialog to AdwMessageDialog 2023-11-21 02:58:14 +00:00
Automeris naranja
58774764d0 cc-panel-list: Use AdwStatusPage when showing "No Results Found" 2023-11-13 09:48:45 +00:00
Gotam Gorabh
3bb233b50a system: Add 'Date Time' panel to system panel
Adds Date Time panel to the system panel as a page.

https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/system/system-panel.png

See #2241
2023-11-02 12:15:11 +00:00
Felipe Borges
fb13e45aba system: Add "About" page 2023-11-02 12:15:11 +00:00
Gotam Gorabh
72973b9a8a system: Add 'Region Language' panel to system panel
Adding Region & Language page to the system panel.

https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/system/system-panel.png

See #2241
2023-11-02 12:15:11 +00:00
Gotam Gorabh
5a92981056 system: Add new Sytem panel
This is the basic panel structure which will contain the
pages for the "System" panel, per mockups in
https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/system/system-panel.png

See #2241
2023-11-02 12:15:11 +00:00
Felipe Borges
7ffdb1c5b9 appdata: Update contact url to point users to Discourse
The mailing list is now dead.

See #1158
2023-10-20 12:58:49 +02:00
Sabri Ünal
30eed4a66e appdata: add vcs-browser support and more
vcs-browser URL is visible on Flathub and GNOME Control Center.

Also:
- Update donation URL
- Add a homepage

More information: https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-url
2023-10-20 12:57:31 +02:00
Marco Melorio
e6ac0b8eed panel: Remove unused and undefined declarations 2023-10-12 10:09:44 +02:00
Marco Melorio
d91f9381f9 misc: Remove unused variables 2023-10-12 10:09:44 +02:00
Automeris naranja
bc8eed3eca help-overlay: Remove "CTRL+S" and include "CTRL+F"
CTRL+S is no longer a shortcut to trigger search ever since
https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1609,
because is a shortcut reserved for saving a file/content:
https://developer.gnome.org/hig/reference/keyboard.html

Also, CTRL+F, which is the shortcut recommended by HIG to trigger search,
already triggered the search bar in Settings prior to change that removed CTRL+S.
However, this shortcut was absent from the shortcuts window.
2023-10-03 11:57:22 +00:00
Marco Melorio
7b8a756a57 shell: Remove unused "sidebar-activated" signal from CcPanel 2023-09-22 11:45:02 +00:00
Marco Melorio
e413f3fd91 shell: Remove unneeded custom title-widget in main window
It was using the same title that was already defined in the
AdwNavigationPage of the sidebar.

Also remove some unneeded template bindings.
2023-09-22 11:45:02 +00:00
Marco Melorio
3d04632554 shell: Remove AdwNavigationView from the sidebar
We don't need it anymore now that we removed support for sidebar
subpages.
2023-09-22 11:45:02 +00:00
Marco Melorio
46021b152d shell: Remove sidebar subpages support from panels
They are now unused and they should not be used anymore in new panels.
2023-09-22 11:45:02 +00:00
Nishal Kulkarni
20eda27bb9 applications: Move default app and removable media
Currently setting's panel list is over-populated. We can fix this by
moving some of the settings inside other panels as sub-panels.

Created a new row in applications panel for removable media and
default apps. On selecting the row we show the respective settings
which is same as before.

Removed default app and removable media from sidebar

Closes: #1092 #1096
Related to: #1090
2023-09-19 11:13:41 +00:00
Felipe Borges
e4d0d5abf9 45.0 2023-09-15 12:05:03 +02:00
Felipe Borges
4522098556 Use g_printerr to message that we only support GNOME environments
Instea of g_messages that only gets shown when debug messages are
enabled.

Fixes #2532
2023-09-01 09:56:21 +00:00
Felipe Borges
21dfe16df6 shell: Drop two leftover/unused variables
These were made useless by commit 754536cc97
2023-08-30 10:52:37 +02:00