Commit graph

224 commits

Author SHA1 Message Date
Andy Holmes
755ace7b7d online-accounts: move Fedora to the end of branded providers 2024-04-08 09:42:19 +00:00
Andy Holmes
c46e2c6115 online-accounts: rename windows_live provider to "Microsoft" 2024-04-08 09:42:19 +00:00
Andy Holmes
8b9242595c online-accounts: rename MS365 provider 2024-04-08 09:42:19 +00:00
Andy Holmes
3190cd6afe online-accounts: use sentence capitalization for descriptions 2024-04-08 09:42:19 +00:00
Andy Holmes
081ae920a0 online-accounts: move providers into a list model
Refactor slightly to get providers into a list model, to ease future
UX changes and reduce friction for design iteration.

cc !2354
2024-04-08 09:42:19 +00:00
Andy Holmes
cf5e43feac online-accounts: implement service descriptions for providers
Add descriptions for each provider type, indicating which services
a given provider can support.

closes #1917
2024-04-08 09:42:19 +00:00
Automeris naranja
fb1d55f3b3 online-account-row: Implement the new error status design
- Add the "Error" label next to the icon
- Make the label and icon to use @error_color

Reference:
0a16d3ce2b
2024-04-02 15:02:51 +00:00
Allan Day
5e1db66a73 online-accounts-panel: Organize the accounts list
Group the unbranded accounts and the Microsoft accounts, so that the
list is more logically ordered and looks better.

Fixes #2949
2024-03-11 13:41:55 +00:00
Andy Holmes
bf4be8c09e online-accounts: update strings to match GOA GNOME 46 design
Update the "Email" and "Calendars, Contacts, Files" to match the
GOA design for GNOME 46, as "E-mail" and "Calendar, Contacts and
Files", respectively.

See: Teams/Design/settings-mockups!68
2024-02-20 08:59:34 +00:00
Automeris naranja
9546942372 online-account: Add arrows to all rows
Reference:
86315f32ad
2024-02-19 16:13:37 +00:00
Andy Holmes
b0776a2ecd online-accounts: define a GType macro for account rows 2024-02-18 01:01:37 +00:00
Andy Holmes
0e7a9d91e0 online-accounts: use subtitles for ambiguous providers
Add better titles for providers with names like "IMAP and SMTP",
retaining the GOA-provided string as the row subtitle.
2024-02-12 19:04:00 +01:00
Andy Holmes
3d2e3400b0 online-accounts: sort providers statically
Sorting providers and accounts by features flags makes it difficult to
thme how we like, so hard-code the sorting order based on the
non-localized provider name.
2024-02-12 19:04:00 +01:00
Andy Holmes
6405c255aa online-accounts: avoid a NULL-pointer dereference 2024-02-12 17:58:35 +00:00
Andy Holmes
80fcc8c2f2 online-accounts: port to new API
Port to the new GOA API, with simple async functions.
2024-02-12 17:58:35 +00:00
Andy Holmes
08c51127ac online-accounts: remove goa-helper
Remove the GOA subprocess helper and use GoaClient directly.

The GoaClient is loaded asynchronously, with the panel being marked
insensitive until ready. Any `CcPanel::parameters` passed while loading
are deferred until the client is ready.
2024-02-12 17:58:35 +00:00
Monster
a4dc4d150e online-accounts: Remove period in description 2024-02-05 10:57:53 +00:00
Andy Holmes
6832d721c1 online-accounts: free window handle when unexporting
When unexporting the window handle be sure to free the string as well.
2023-11-02 10:02:35 +00:00
Andy Holmes
30c65ceaed online-accounts: free list-providers leak
Unref variants after using the goa-helper to list providers.
2023-11-02 10:02:35 +00:00
Andy Holmes
d3b0272f13 online-accounts: fix null pointer de-reference
Ensure goa_account_call_remove() isn't called on a NULL pointer.
2023-11-02 09:52:08 +00:00
Andy Holmes
038e8de089
online-accounts: fix leak in goa-helper
Drop reference to GMainLoop after running the helper to list all
providers.
2023-10-30 10:38:38 -07:00
Mara Lasker
ddbd410943 online-accounts: Add line-breaks to log messages
!1331 (merged) introduced a custom logger as a workaround for
a not ideal design choice, but the workaround is using g_printerr,
which is not adding linebreaks, so the logs were unreadable.

This doesn't fix the whole architecture of this part, but simply
adds a line-break so that at least the logs can be read by humans.
2023-09-12 11:01:38 +00:00
Alice Mikhaylenko
4680f362f3 Port to AdwNavigationSplitView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
dad9c8a732 online-accounts: Port to AdwToolbarView 2023-08-25 08:00:43 +00:00
Felipe Borges
d0dd72f747 online-accounts: Improve "offline" message text
According to mockups at
https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/online-accounts/online-accounts.png
2023-07-12 18:03:59 +02:00
Felipe Borges
9ca9c03d06 online-accounts: Use AdwBanner to indicate when we're offline
Fixes #2201
2023-07-12 18:01:06 +02:00
Automeris naranja
2e8bf16a25 online-accounts: Improve the title of the account providers section
This change modifies the title of the account providers section
to follow the mockup below:

https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/online-accounts/online-accounts.png
2023-07-12 17:58:32 +02:00
Automeris naranja
b637117bf6 online-accounts: Update the a11y label of the connected accounts section
The a11y label of the accounts section was linked to the "accounts_label" object,
which got replaced by the panel description in https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1669/diffs?commit_id=597a83d2df465585b7ea216a199e3b2940afca40
2023-07-12 17:58:32 +02:00
Automeris naranja
6d99393981 online-accounts: Add title for the connected accounts section
This change adds a title for the connected accounts section
in order to follow the mockup below:

https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/online-accounts/online-accounts.png
2023-07-12 17:58:32 +02:00
Automeris naranja
b29b5ca259 online-accounts: Add panel description
This change adds a description to the Online Accounts panel
in order to follow the mockup below:

https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/online-accounts/online-accounts.png
2023-07-12 17:58:32 +02:00
Robert Ancell
3f057fed7b online-accounts: Connect signal handlers in swapped form 2023-06-07 09:12:54 +12:00
Robert Ancell
d951856294 online-accounts: Use self for object variable name 2023-06-06 07:54:38 +00:00
Robert Ancell
3ad1f01b34 online-accounts: Do signal handlers in swapped form 2023-05-30 08:36:22 +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
Maksym Hazevych
08c2e69851 Resolving suggestions 2023-03-29 14:26:55 +13:00
Maksym Hazevych
5b988a6943 Replace all occurrences of 'gtk_widget_hide'
Replace all occurrences of 'gtk_widget_hide(smth)' with
'gtk_widget_set_visible(smth, FALSE)'.
2023-03-29 14:26:55 +13:00
Maksym Hazevych
d831e5cb48 Replace all occurrences of 'gtk_widget_show'
Replace all occurrences of 'gtk_widget_show(smth)' with
'gtk_widget_set_visible(smth, TRUE)'.
2023-03-29 14:26:55 +13:00
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
Mohammed Sadiq
234485fd19 online-accounts: Fix a possible crash on parsing NULL string
If the goa helper fails to find goa helper executable (which happened when run
without install), %NULL is returned.  Avoid feeding g_variant_parse(), the %NULL
variable in those case as it is not nullable and avoid the crash that follows.
2022-08-17 08:16:28 +00:00
Georges Basile Stavracas Neto
caa9b59f41 online-accounts: Mark run_goa_helper_sync as NULL-terminated
Spotted while porting GNOME Initial Setup [1]

[1]
https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/merge_requests/134
2022-07-21 16:54:25 -03:00
Georges Basile Stavracas Neto
0e8835d18c online-accounts: Print all GLib messages to stderr
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1864
2022-05-29 23:24:46 +00:00
Robert Ancell
b7302348cf online-accounts: Add CcOnlineAccountRow 2022-05-11 14:51:53 +12:00
Robert Ancell
32a807b964 online-accounts: Add CcOnlineAccountProviderRow 2022-05-11 14:49:12 +12:00
Robert Ancell
7bf240ca3f online-accounts: Use g_autoptr 2022-05-11 14:04:22 +12:00
Robert Ancell
7d4c8346ca online-accounts: Rename panel class to match filename 2022-05-11 14:04:18 +12:00
Lukáš Tyrychtr
e26f28d1fd Add a label to the close notification button in online account settings 2022-05-10 22:19:52 +00:00
Bastien Nocera
1e1fbd6891 online-accounts: Fix feature switches not doing anything
Make sure to keep a reference to the GoaObject of the account around so
that the GBinding that synchronises each switch widget and the account
properties don't get finalized on startup.

 #0  0x00007ffff73c6a20 in g_binding_finalize () at /lib64/libgobject-2.0.so.0
 #1  0x00007ffff73d3d22 in g_object_unref () at /lib64/libgobject-2.0.so.0
 #2  0x00007ffff73c68e8 in weak_unbind () at /lib64/libgobject-2.0.so.0
 #3  0x00007ffff73cf117 in weak_refs_notify () at /lib64/libgobject-2.0.so.0
 #4  0x00007ffff72acd6c in g_data_set_internal () at /lib64/libglib-2.0.so.0
 #5  0x00007ffff73d0195 in g_object_real_dispose.lto_priv () at /lib64/libgobject-2.0.so.0
 #6  0x00007ffff73d3c44 in g_object_unref () at /lib64/libgobject-2.0.so.0
 #7  0x00007ffff72b6793 in g_hash_table_remove_all_nodes.part () at /lib64/libglib-2.0.so.0
 #8  0x00007ffff72ba723 in g_hash_table_unref () at /lib64/libglib-2.0.so.0
 #9  0x00007ffff753403d in g_dbus_object_proxy_finalize () at /lib64/libgio-2.0.so.0
 #10 0x00007ffff73d3d22 in g_object_unref () at /lib64/libgobject-2.0.so.0
 #11 0x0000000000402d08 in glib_autoptr_clear_GoaObject (_ptr=0x5d59f0) at /usr/include/goa-1.0/goa/goa-generated.h:3265
 #12 glib_autoptr_cleanup_GoaObject (_ptr=<synthetic pointer>) at /usr/include/goa-1.0/goa/goa-generated.h:3265
 #13 on_application_activate_show_account_cb (application=0x49f2f0, argv=<optimized out>) at ../../../../Projects/jhbuild/gnome-control-center/panels/online-accounts/gnome-control-center-goa-helper.c:360

Closes: #1721
2022-04-19 23:19:54 +02:00
Jan Tojnar
7fe322b9ce online-accounts: Fix goa-helper on X11
The handle_str contains the “x11:” prefix so strtol would return 0.
We need to pass it the numeric substring.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1651
2022-03-29 12:33:14 +00:00
Georges Basile Stavracas Neto
ea7012d9a9 online-accounts: Hide accounts group by default
We show it whenever an account is added, and it needs to
start hidden to not break style.

Related: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1587
2022-02-01 11:42:13 -03:00
Jakub Steiner
13376ecb8b Add individual app icons 2022-01-31 14:08:22 +00:00