Commit graph

491 commits

Author SHA1 Message Date
Alice Mikhaylenko
4680f362f3 Port to AdwNavigationSplitView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
4af030d74c region: Port to AdwToolbarView 2023-08-25 08:00:43 +00:00
Felipe Borges
0c9498d1f8 Mark some strings as translatable
These are strings that are presented in the UI that were not marked
for translation.

Fixes #2596
2023-08-11 12:07:00 +02:00
Alice Mikhaylenko
d2ebbf1fec region: Fix preview buttons in the format chooser
This never worked.
2023-08-02 12:52:01 +00:00
Maksym Hazevych
05e556077d Use page for description instead of empty group
Use the "description" property of AdwPreferencesPage instead of an empty
AdwPreferencesGroup.
2023-06-06 13:40:33 +00:00
Robert Ancell
c78eb3d2f8 region: Do signal handlers in swapped form 2023-05-30 08:36:22 +00:00
Felipe Borges
e97429f0f6 Make dialogs close when pressing the Escape key
Fixes #2503
2023-05-25 23:24:00 +00:00
Pablo Correa Gómez
7f7b65545c all: meson: do not specify resources from gresource files as dependencies
Meson extracts them by itself and add them as dependencies for the target.
It means one less location to keep track of files, and a lot less boilerplate
around the meson files
2023-05-24 08:34:14 +00:00
Automeris naranja
1a0bf81cad format-chooser: Drop ellipsis from placeholder text of search entry
None of the placeholders suggested by Allan Day have ellipsis, so
this change drops the ellipsis from the placeholder text of the search entry
from format-chooser, thus keeping consistency.

https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1526#note_1609984
2023-04-21 12:40:42 +00:00
Chris Mayo
92c4b6a706 Fix panel crashes due to unknown types in UI descriptions
Error building template class 'CcSearchPanel' for an instance of type 'CcSearchPanel': .:0:0 Invalid object type 'CcListRow'

Error building template class 'CcDisplayPanel' for an instance of type 'CcDisplayPanel': .:0:0 Invalid object type 'CcListRow'

Error building template class 'CcMousePanel' for an instance of type 'CcMousePanel': .:0:0 Invalid object type 'CcIllustratedRow'

Error building template class 'CcKeyboardPanel' for an instance of type 'CcKeyboardPanel': .:0:0 Invalid object type 'CcListRow'

Error building template class 'CcRegionPanel' for an instance of type 'CcRegionPanel': .:0:0 Invalid object type 'CcListRow'

Error building template class 'CcUaPanel' for an instance of type 'CcUaPanel': .:0:0 Invalid object type 'CcListRow'

Error building template class 'CcUserPanel' for an instance of type 'CcUserPanel': .:0:0 Invalid object type 'CcAvatarChooser'
Error building template class 'CcUserPanel' for an instance of type 'CcUserPanel': .:0:0 Invalid object type 'CcListRow'

Error building template class 'CcDateTimePanel' for an instance of type 'CcDateTimePanel': .:0:0 Invalid object type 'CcTzDialog'
cc_tz_dialog_get_selected_location: assertion 'CC_IS_TZ_DIALOG (self)' failed
dumped core
Error building template class 'CcDateTimePanel' for an instance of type 'CcDateTimePanel': .:0:0 Invalid object type 'CcListRow'

Error building template class 'CcInfoOverviewPanel' for an instance of type 'CcInfoOverviewPanel': .:0:0 Invalid object type 'CcHostnameEntry'
2023-04-17 12:14:58 +00:00
Christopher Davis
74e6964fd1 region: Use AdwBanner instead of GtkInfoBar
AdwBanner is a new adaptive widget that should be used
in place of GtkInfoBar. It provides an API close
to how we use InfoBars in GNOME, and fits better at smaller
window sizes.

This commit swaps out the GtkInfoBar used in the Region panel
for an AdwBanner.
2023-04-11 12:23:16 +00:00
Gunnar Hjalmarsson
33659beb90 region: Fix label of formats for the login screen
When system_region equals system_language, the UI should state the
country of the system_language as the selected login screen formats,
and that is not always "United States".

Fixes: GNOME/gnome-control-center#2418
2023-03-28 13:49:53 +00:00
Marco Melorio
c470cd30c1 region: Remove deprecated gtk_widget_show/hide usage 2023-01-02 22:10:39 +00:00
Mohammed Sadiq
fa00953562 region: Use CcListRow for rows with go-next symbolic icons 2022-11-25 20:11:06 +05:30
Jake Dane
89443fe550 desktop: Remove obsolete Bugzilla entries
The `X-GNOME-Bugzilla-*` entries were for use by bug-buddy, a GNOME 2
technology that's been gone for over a decade. These entries are
obsolete and can be removed from all desktop files.

The `X-GNOME-Settings-Panel` entry is also obsolete as far as I can
tell and only these panels had it in their desktop file: notifications,
sharing, sound and user-accounts. These entries can also be removed.

After removing the `X-GNOME-Bugzilla-*` entries, the desktop files have
no more variables in them. The meson `configure_file` step is therefor
pointless—there are no variables to configure. As such the
`*.desktop.in.in` files are renamed to `*.desktop.in` to reflect this
and `meson.build` files are modified to remove `configure_file` step.
2022-10-20 13:20:09 +00:00
Kaustubh Desale
2538075fd5 Fixes uneven padding in Formats search bar. 2022-10-15 18:32:56 +00:00
Pablo Correa Gómez
b9a684dc1d region: fix warning of uninitialized variables
../panels/region/cc-region-panel.c: In function 'set_restart_notification_visible':
../panels/region/cc-region-panel.c:131:17: warning: 'current_locale' may be used uninitialized [-Wmaybe-uninitialized]
  131 |                 uselocale (current_locale);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../panels/region/cc-region-panel.c:115:18: note: 'current_locale' was declared here
  115 |         locale_t current_locale;
      |                  ^~~~~~~~~~~~~~
../panels/region/cc-region-panel.c:130:34: warning: 'new_locale' may be used uninitialized [-Wmaybe-uninitialized]
  130 |         if (locale && new_locale != (locale_t) 0) {
      |                       ~~~~~~~~~~~^~~~~~~~~~~~~~~
../panels/region/cc-region-panel.c:114:18: note: 'new_locale' was declared here
  114 |         locale_t new_locale;
      |                  ^~~~~~~~~~
2022-08-20 20:47:35 +00:00
Pablo Correa Gómez
7846e57bfe region: fix possibly unused variable
../panels/region/cc-format-preview.c: In function 'update_format_examples':
../panels/region/cc-format-preview.c:70:16: warning: unused variable 'fmt' [-Wunused-variable]
   70 |   const gchar *fmt;
      |                ^~~
2022-08-20 20:47:35 +00:00
Pablo Correa Gómez
32b5e5dcb3 region: fix permissions_acquired always returning FALSE 2022-08-20 20:47:35 +00:00
Jan Tojnar
c9448f76c2 region: Fix critical when changing language
Changing user’s language resets the formats (region) by passing `NULL` to `update_region`.
However, updating the region calls `maybe_notify`, whose callback `maybe_notify_finish`
tries to parse the `mnd->target_locale` (the `NULL`), producing a critical:

    GLib-CRITICAL **: g_regex_match_full: assertion 'string != NULL' failed

Since updating the language itself already triggers the notification check,
let’s just skip calling `maybe_notify` here in that case.
2022-05-26 19:05:16 +00:00
Lukáš Tyrychtr
eece14f1cd Add a missing a11y label to the search box in the country selection dialog 2022-05-25 23:43:28 +00:00
Ritik Bhandari
8320d17825 region: Fixed typo from "formats is.." to "formats are" 2022-05-12 23:11:00 +00:00
Georges Basile Stavracas Neto
85199430cb region: Fix format chooser leaflet page
We need to go back to region_box, not region_list.
2022-02-07 07:03:42 -03:00
Georges Basile Stavracas Neto
eaa62700f6 region: Various small improvements to CcFormatChooser 2022-02-07 07:03:42 -03:00
Georges Basile Stavracas Neto
6f2875e467 region: Replace "Login Screen" toggle button by section
Rework the panel to have 2 groups: the user's language and
format; and the login screen's language and format. Remove
the now unused bottom label explainig the login screen.

Special-casing of single user systems is still present.

Related: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1587
2022-02-07 07:03:42 -03:00
Georges Basile Stavracas Neto
53b31dd753 region: Merge language and formats into a single group
As per mockups. We'll be adding another pair for the login
screen soon.
2022-02-07 07:03:42 -03:00
Georges Basile Stavracas Neto
6ed208221f region: Switch formats row to AdwActionRow 2022-02-07 07:03:42 -03:00
Georges Basile Stavracas Neto
ae93012543 region: Switch language row to AdwActionRow 2022-02-07 07:03:42 -03:00
Georges Basile Stavracas Neto
01e7544827 region: Move logout message to an infobar
As per mockups. Also adjust the wording of the info bar label.
2022-02-07 07:03:37 -03:00
Georges Basile Stavracas Neto
72742f9580 region: Switch to AdwPreferencesPage and AdwPreferencesGroup
This cleans up all the manual label shenanigans we've been
doing.
2022-02-07 07:01:30 -03:00
Sam Hewitt
65b109763b Cleanup private use symbolics
- remove references to deprecated app symbolics
- reduce file size of private-use icons
- update dated icons
2022-02-04 18:12:41 +00:00
Jakub Steiner
13376ecb8b Add individual app icons 2022-01-31 14:08:22 +00:00
Georges Basile Stavracas Neto
4cd8c05e0a region: Remove title buttons from format chooser dialog
A regression from the GTK4 port.

See https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1587
2022-01-21 16:13:21 +00:00
Georges Basile Stavracas Neto
17c25a18d2 region: Hide login label by default
A regression from the GTK4 port.
2022-01-21 16:13:21 +00:00
Georges Basile Stavracas Neto
fbee78874f region: Add go-next-symbolic to rows
See https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1587
2022-01-21 16:13:21 +00:00
Georges Basile Stavracas Neto
acd59aec65 Rename app-id to org.gnome.Settings
Rename the app-id to org.gnome.Settings since this is what
we've been calling it for many years now. Adjust all files
that derive from the app-id, such as the desktop file, D-Bus
service file names, search providers, GSettings schemas, to
match that.

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/344
2022-01-21 13:08:50 +00:00
Georges Basile Stavracas Neto
0ab20af9ba panels: Switch to CcPanel content
Start porting panels to the new panel format. This commit
temporarily makes panels have two titlebar, which will be
fixed soon.
2022-01-20 02:23:42 +00:00
Jan Beich
37b29c32cb meson: drop unused argument for i18n.merge_file()
Ignored in Meson < 0.60.0, deprecated since 0.60.1 and fatal since 0.61.0.

panels/applications/meson.build:10:5: ERROR: Function does not take positional arguments.
panels/background/meson.build:10:5: ERROR: Function does not take positional arguments.
panels/camera/meson.build:10:5: ERROR: Function does not take positional arguments.
[...]
2022-01-07 17:22:43 +00:00
Christopher Davis
981a8cea7b panels: Use .boxed-list instead of .content
The `.content` style class is deprecated in favor
of the `.boxed-list` style class, which is named
after the design pattern it's used for.
2021-12-16 12:52:44 -08:00
Georges Basile Stavracas Neto
ddf6ca9952 region: Port to GTK4
An uneventful port.
2021-12-14 22:34:21 -03:00
grumpey
f8e0558ebd Use proper unicode ellipses in strings
Fixes: #1458
2021-09-28 09:15:00 -04:00
Andre Klapper
54a360811c Update keyboard related panel descriptions
Input Sources moved from Region & Language to Keyboard section in 40

Fixes #1447
2021-09-07 07:48:15 +00:00
Felipe Erias Morandeira
1d952d4ebd region: replace the "Login Screen" button
...on the title bar with joined toggles (like in Background panel) for a
clearer UI.

Note 2020-08-26: This patch has been in Endless OS since 2014. It seems
  like a good UX change, so I'm proposing it upstream with some minor
  changes. - mwleeds
2021-08-02 12:03:40 +12:00
Mario Sanchez Prada
92da5b6783 region: update the locale format along with the language when it changes
Not doing this will lead to (probably undesired) inconsistencies when
changing the language, since many locale-dependant strings will still be
rendered considering the previous language format (e.g. days of the week).

Note 2020-08-26: This patch has been in Endless OS since 2015, proposing
  it upstream. - mwleeds
2021-01-10 21:01:20 +00:00
Ian Douglas Scott
9366de52cd region: "Language" and "Format" headers and descriptions 2020-12-18 07:55:41 -08:00
Ian Douglas Scott
8996ffac88 Move input sources from region panel to keyboard panel 2020-12-18 07:55:41 -08:00
Takao Fujiwara
5c0f6e1cde region: Search default input sources
The default input sources are not included in layout_rows_by_id or
engine_rows_by_id but in default_input_source_row of GtkListBoxRow.

https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1131
2020-09-25 03:09:06 +00:00
Ian Douglas Scott
ddfd582b72 region: Move preview of format to a widget 2020-09-15 22:19:55 +00:00
Ian Douglas Scott
0dce812e18 region: "move up" and "move down" buttons in input row menu
Implementation borrowed from cc-search-panel-row.c
2020-09-15 21:28:25 +00:00
Ian Douglas Scott
561a6b93dc region: Use popover for input source rows 2020-09-15 21:28:25 +00:00