After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 769213 - Let goa_provider_show_account have more control over the UI
Let goa_provider_show_account have more control over the UI
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Online Accounts
git master
Other All
: Normal normal
: ---
Assigned To: GNOME Online Accounts maintainer(s)
Control-Center Maintainers
Depends on:
Blocks: 769267
 
 
Reported: 2016-07-27 07:39 UTC by Debarshi Ray
Modified: 2016-08-14 22:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[g-o-a] Rename goa_util_add_account_info as goa_utils_account_add_header (7.53 KB, patch)
2016-07-27 07:43 UTC, Debarshi Ray
committed Details | Review
[g-o-a] utils: Add goa_utils_account_add_attention_needed (6.31 KB, patch)
2016-07-27 07:44 UTC, Debarshi Ray
committed Details | Review
[g-o-a] Only accept a vertical GtkBox via goa_provider_show_account (11.54 KB, patch)
2016-07-27 07:44 UTC, Debarshi Ray
committed Details | Review
[g-c-c] online-accounts: Let goa_provider_show_account create the full UI (7.19 KB, patch)
2016-07-27 07:46 UTC, Debarshi Ray
committed Details | Review

Description Debarshi Ray 2016-07-27 07:39:55 UTC
It is not ideal to have the UI split across a relatively fine-grained, semi-stable, cross-module interface boundary. Non-trivial changes to the UI require changes to the goa_provider_show_account interface. In fact, we are already not using it the way it was originally intended to be- the 2nd GtkGrid* parameter is just a dummy these days.

Moreover, it prevents us from having a sufficiently different UI for certain account types by enforcing the same high level layout for everything. For example, these mockups for Kerberos accounts won't fit into the current layout: https://dl.dropboxusercontent.com/u/5031519/settings/goa-kerberos.png

Therefore, let's just pass a high level container to goa_provider_show_account, which the GoaProvider can use whichever way it feels like.
Comment 1 Debarshi Ray 2016-07-27 07:43:34 UTC
Created attachment 332199 [details] [review]
[g-o-a] Rename goa_util_add_account_info as goa_utils_account_add_header
Comment 2 Debarshi Ray 2016-07-27 07:44:08 UTC
Created attachment 332200 [details] [review]
[g-o-a] utils: Add goa_utils_account_add_attention_needed
Comment 3 Debarshi Ray 2016-07-27 07:44:39 UTC
Created attachment 332201 [details] [review]
[g-o-a] Only accept a vertical GtkBox via goa_provider_show_account
Comment 4 Debarshi Ray 2016-07-27 07:46:23 UTC
Created attachment 332202 [details] [review]
[g-c-c] online-accounts: Let goa_provider_show_account create the full UI
Comment 5 Debarshi Ray 2016-07-27 07:51:45 UTC
(In reply to Debarshi Ray from comment #0)
> Therefore, let's just pass a high level container to
> goa_provider_show_account, which the GoaProvider can use whichever way it
> feels like.

Ideally, I'd completely get rid of the last two parameters. However, it might be wise to wait until we have revamped the entire panel so that we are really sure about what we are doing and avoid any unexpected API churn.
Comment 6 Debarshi Ray 2016-08-14 22:17:52 UTC
Committed to master after talking to Bastien at GUADEC.