Commit graph

479 commits

Author SHA1 Message Date
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
Ian Douglas Scott
c3c5d724bd region: move input source ListBox code into it's own class 2020-09-14 22:07:36 +00:00
Adrien Plazas
fd60c313df Stop using HANDY_USE_UNSTABLE_API
It isn't needed anymore since libhandy 0.90.0.
2020-08-18 02:51:04 +00:00
Ian Douglas Scott
d6ef1036ac region: update HdyLeaflet usage in CcFormatChooser
This resulted in a crash when trying to open the dialog. It seems this
was changed in libhandy 1.

Mentioned in https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/785#note_878171
2020-08-07 02:30:55 +00:00
Adrien Plazas
a0dfbb7aac region: Use HdyLeaflet:folded
Replace the dropped fold enum property by the folded boolean one.
2020-07-20 08:05:54 +02:00
Adrien Plazas
f06379e30c Replace HdyColumn by HdyClamp
In libhandy 1, HdyClamp replaces HdyColumn. This stops setting values
when they match HdyClamp's defaults.
2020-07-20 08:04:28 +02:00
Adrien Plazas
9e2a2836d9 Use GtkDialog instead of HdyDialog
HdyDialog has been dropped in libhandy 1.
2020-07-20 08:04:28 +02:00
Robert Ancell
93b14a4339 panel: Move shared GCancellable code into panel class
Make the panel class provide a cancellable that will be cancelled when the panel
is destroyed. Panel implementations can use this and not have to mangage the
cancellable themselves. Consolidate cases where panels had multiple cancellables
that were all being used for this behaviour.
2020-02-03 09:36:24 +13:00
Mohammed Sadiq
eb4fe4fc42 region: Implement new design for ‘Formats’ dialog
https://gitlab.gnome.org/GNOME/gnome-control-center/issues/635
2020-01-07 14:53:23 +13:00
Georges Basile Stavracas Neto
64756d6b08 region, universal-access: Move to the Details section
They need to have their desktop files updated too.
2020-01-06 15:15:30 +00:00
Robert Ancell
d2ddaa99ea region: Replace ifdefs with #pragma once 2019-11-27 21:56:10 +00:00
Benjamin Berg
7631faa88f region: Explicitly update LC_* even when matching LANG
localed will not update the LC_* variables if they are not given. This
means that should the user switch the formats away from LANG and then
back, they will not be reset appropriately.

Simply always setting the variables even if the match will fix this.
2019-10-17 00:32:34 +00:00
Philip Chimento
412472c16d region: Fix crash in keyboard layout population
The previous code would crash if 'variants' was null and 'layouts' had
more than one element in it.
2019-09-12 18:10:20 +00:00