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 727680 - Use header bar in all the dialogs
Use header bar in all the dialogs
Status: RESOLVED FIXED
Product: gnome-contacts
Classification: Core
Component: general
3.12.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Contacts maintainer(s)
GNOME Contacts maintainer(s)
available
Depends on:
Blocks:
 
 
Reported: 2014-04-05 19:56 UTC by Yosef Or Boczko
Modified: 2014-04-09 18:05 UTC
See Also:
GNOME target: ---
GNOME version: 3.11/3.12


Attachments
Use header bar in the avatar dialog (1.01 KB, patch)
2014-04-05 19:57 UTC, Yosef Or Boczko
committed Details | Review
Use header bar in the linked accounts dialog (1.12 KB, patch)
2014-04-05 19:58 UTC, Yosef Or Boczko
none Details | Review
Use header bar in the new contact dialog (849 bytes, patch)
2014-04-05 19:58 UTC, Yosef Or Boczko
rejected Details | Review
The new contact dialog screenshot (112.34 KB, image/png)
2014-04-07 11:16 UTC, Yosef Or Boczko
  Details
The avatar dialog screenshot (207.00 KB, image/png)
2014-04-07 11:18 UTC, Yosef Or Boczko
  Details
Use header bar in the linked accounts dialog (1.34 KB, patch)
2014-04-08 19:02 UTC, Yosef Or Boczko
committed Details | Review

Description Yosef Or Boczko 2014-04-05 19:56:17 UTC
See the patches.
Comment 1 Yosef Or Boczko 2014-04-05 19:57:57 UTC
Created attachment 273642 [details] [review]
Use header bar in the avatar dialog
Comment 2 Yosef Or Boczko 2014-04-05 19:58:12 UTC
Created attachment 273643 [details] [review]
Use header bar in the linked accounts dialog
Comment 3 Yosef Or Boczko 2014-04-05 19:58:27 UTC
Created attachment 273644 [details] [review]
Use header bar in the new contact dialog
Comment 4 Allan Day 2014-04-07 11:13:18 UTC
Confirming that this is something we want. I'm not able to test patches right now, so feel free to attach screenshots if you want design feedback.

This is the relevant guidelines page: https://wiki.gnome.org/Design/HIG/Dialogs
Comment 5 Yosef Or Boczko 2014-04-07 11:16:21 UTC
Created attachment 273697 [details]
The new contact dialog screenshot

I just wonder if we still wants the title in this dialog.
It look too havvy.
Comment 6 Yosef Or Boczko 2014-04-07 11:18:54 UTC
Created attachment 273698 [details]
The avatar dialog screenshot

I wonder if we wants a 'Done' and 'Cancel' buttons in the
headerbar, instead only 'X' button.

I think there is a problem with this dialog also without headerbar,
in the dialog in the stable branch - if I click on any image, I can't
cancel this.
Comment 7 Yosef Or Boczko 2014-04-07 11:19:53 UTC
For the linked dialog I think all it right.
Comment 8 Allan Day 2014-04-07 12:52:24 UTC
Thanks. I think we do want the title in the new contact dialog. Both words should be capitalised though.
Comment 9 Erick Perez Castellanos 2014-04-07 17:46:45 UTC
(In reply to comment #0)
> See the patches.

Try using `true` instead of `1` in the patches. Please
Comment 10 Yosef Or Boczko 2014-04-07 17:48:11 UTC
(In reply to comment #8)
> Thanks. I think we do want the title in the new contact dialog. Both words
> should be capitalised though.

I pushed a patch for the title:
https://git.gnome.org/browse/gnome-contacts/commit/?id=26620
Comment 11 Yosef Or Boczko 2014-04-07 17:48:52 UTC
(In reply to comment #9)
> (In reply to comment #0)
> > See the patches.
> 
> Try using `true` instead of `1` in the patches. Please

Hmm, I use the interface from the web, not git bz.
Comment 12 Yosef Or Boczko 2014-04-08 19:02:57 UTC
Created attachment 273829 [details] [review]
Use header bar in the linked accounts dialog

According to the last design I see in gnome-mockup repo.
Comment 13 Erick Perez Castellanos 2014-04-09 16:56:36 UTC
Review of attachment 273829 [details] [review]:

::: src/contacts-linked-accounts-dialog.vala
@@ +28,2 @@
   public LinkedAccountsDialog (Contact contact) {
+    Object (use_header_bar: 1);

Please use true.
Comment 14 Yosef Or Boczko 2014-04-09 16:58:52 UTC
(In reply to comment #13)
> Review of attachment 273829 [details] [review]:
> 
> ::: src/contacts-linked-accounts-dialog.vala
> @@ +28,2 @@
>    public LinkedAccountsDialog (Contact contact) {
> +    Object (use_header_bar: 1);
> 
> Please use true.

Please, see the following comments on bug 727068:
https://bugzilla.gnome.org/show_bug.cgi?id=727068#c15
Comment 15 Erick Perez Castellanos 2014-04-09 17:01:49 UTC
Review of attachment 273829 [details] [review]:

I have the same objection I had before. Use true when the data type is boolean. Code readability matters.

::: src/contacts-linked-accounts-dialog.vala
@@ +28,2 @@
   public LinkedAccountsDialog (Contact contact) {
+    Object (use_header_bar: 1);

Please use true.
Comment 16 Yosef Or Boczko 2014-04-09 17:08:37 UTC
(In reply to comment #15)
> Review of attachment 273829 [details] [review]:
> 
> I have the same objection I had before. Use true when the data type is boolean.
> Code readability matters.
> 
> ::: src/contacts-linked-accounts-dialog.vala
> @@ +28,2 @@
>    public LinkedAccountsDialog (Contact contact) {
> +    Object (use_header_bar: 1);
> 
> Please use true.

The use-header-bar property it int, not bool, I can't use true instead 1.
contacts-linked-accounts-dialog.vala:29.13-29.32: error: Cannot convert from `bool' to `int'
    Object (use_header_bar: true);
            ^^^^^^^^^^^^^^^^^^^^
Comment 17 Erick Perez Castellanos 2014-04-09 17:28:36 UTC
(In reply to comment #16)
> (In reply to comment #15)
> > Review of attachment 273829 [details] [review] [details]:
> > 
> > I have the same objection I had before. Use true when the data type is boolean.
> > Code readability matters.
> > 
> > ::: src/contacts-linked-accounts-dialog.vala
> > @@ +28,2 @@
> >    public LinkedAccountsDialog (Contact contact) {
> > +    Object (use_header_bar: 1);
> > 
> > Please use true.
> 
> The use-header-bar property it int, not bool, I can't use true instead 1.
> contacts-linked-accounts-dialog.vala:29.13-29.32: error: Cannot convert from
> `bool' to `int'
>     Object (use_header_bar: true);
>             ^^^^^^^^^^^^^^^^^^^^

Yeap, just saw it, in Gtk+-3.0 vapi file is marked as int
Comment 18 Erick Perez Castellanos 2014-04-09 17:38:30 UTC
Comment on attachment 273644 [details] [review]
Use header bar in the new contact dialog

The new contact dialog is going away before 3.14, so we don't need to patch it
Comment 19 Yosef Or Boczko 2014-04-09 17:48:46 UTC
Review of attachment 273829 [details] [review]:

Pushed as 93bb4 - Use header bar in the linked accounts dialog
Comment 20 Yosef Or Boczko 2014-04-09 17:49:10 UTC
Review of attachment 273642 [details] [review]:

Pushed as 052ee - Use header bar in the avatar dialog
Comment 21 Yosef Or Boczko 2014-04-09 17:50:36 UTC
(In reply to comment #18)
> (From update of attachment 273644 [details] [review])
> The new contact dialog is going away before 3.14, so we don't need to patch it

What will be instead?
Comment 22 Allan Day 2014-04-09 18:05:28 UTC
(In reply to comment #21)
> (In reply to comment #18)
> > (From update of attachment 273644 [details] [review] [details])
> > The new contact dialog is going away before 3.14, so we don't need to patch it
> 
> What will be instead?

See bug 699324. Thanks for the patches, Yosef!