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 742521 - Put the panel switches in a list
Put the panel switches in a list
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Notifications
git master
Other Linux
: Normal normal
: ---
Assigned To: Marek Kašík
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-01-07 12:34 UTC by Allan Day
Modified: 2015-01-20 14:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Move switches to a GtkListBox (11.32 KB, patch)
2015-01-16 11:46 UTC, Marek Kašík
accepted-commit_now Details | Review
Add label Applications (2.74 KB, patch)
2015-01-16 11:47 UTC, Marek Kašík
accepted-commit_now Details | Review
Change switch labels (1.86 KB, patch)
2015-01-16 11:47 UTC, Marek Kašík
committed Details | Review
Place switches into GtkListBox (39.76 KB, patch)
2015-01-16 11:49 UTC, Marek Kašík
accepted-commit_now Details | Review
screenshots of the result (105.72 KB, image/png)
2015-01-16 12:06 UTC, Marek Kašík
  Details
Move switches to a GtkListBox (14.60 KB, patch)
2015-01-20 12:45 UTC, Marek Kašík
committed Details | Review
Add label Applications (2.71 KB, patch)
2015-01-20 12:47 UTC, Marek Kašík
committed Details | Review
Place switches into GtkListBox (39.85 KB, patch)
2015-01-20 12:49 UTC, Marek Kašík
committed Details | Review

Description Allan Day 2015-01-07 12:34:10 UTC
The "Show Pop Up Banners" and "Show in Lock Screen" labels are quite a long way from the corresponding switches. Placing them in a list would make the UI easier to read:

https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/system-settings/notifications/notifications-wireframes.png
Comment 1 Marek Kašík 2015-01-16 11:46:22 UTC
Created attachment 294675 [details] [review]
Move switches to a GtkListBox

This patch moves the switches on the notifications panel to a GtkListBox.
Comment 2 Marek Kašík 2015-01-16 11:47:04 UTC
Created attachment 294676 [details] [review]
Add label Applications

This patch adds the Application label from the mockup.
Comment 3 Marek Kašík 2015-01-16 11:47:48 UTC
Created attachment 294677 [details] [review]
Change switch labels

This patch changes labels of the switches on the notifications panel as done in the mockup.
Comment 4 Marek Kašík 2015-01-16 11:49:33 UTC
Created attachment 294678 [details] [review]
Place switches into GtkListBox

This patch rewrites the edit dialog of notifications panel so that the switches are in a GtkListBox and have the behaviour written on the mockup. It uses ui file now.

You need to have the patch from the bug #742520 applied before these.
Comment 5 Marek Kašík 2015-01-16 12:06:12 UTC
Created attachment 294685 [details]
screenshots of the result
Comment 6 Marek Kašík 2015-01-16 14:54:34 UTC
I should mention that the switches which are off and insensitive because of a superior switch don't actually change corresponding gsetting values.
I think that user would like to keep what he set before once he enables it again. Tell me if I'm wrong.
Comment 7 Allan Day 2015-01-16 14:56:36 UTC
Thanks for working on this, Marek! It looks really good to me. I've tried the patches and have a few minor changes to suggest:

 * The panel list boxes are missing a visible border
 * border-width on edit-dialog-vbos should be 0
 * margin-start on Applications label should be 3, not 6

Otherwise, it looks excellent.
Comment 8 Allan Day 2015-01-16 15:13:27 UTC
(In reply to comment #6)
> I should mention that the switches which are off and insensitive because of a
> superior switch don't actually change corresponding gsetting values.
> I think that user would like to keep what he set before once he enables it
> again. Tell me if I'm wrong.

That sounds correct. Thanks again!
Comment 9 Rui Matos 2015-01-16 15:53:43 UTC
Review of attachment 294675 [details] [review]:

ok
Comment 10 Rui Matos 2015-01-16 15:55:44 UTC
Review of attachment 294676 [details] [review]:

++
Comment 11 Rui Matos 2015-01-16 15:56:17 UTC
Review of attachment 294677 [details] [review]:

ok
Comment 12 Rui Matos 2015-01-16 16:37:25 UTC
Review of attachment 294678 [details] [review]:

otherwise looks good

::: panels/notifications/cc-edit-dialog.c
@@ +324,3 @@
+      g_warning ("Could not load ui: %s", error->message);
+      g_error_free (error);
+      return;

the builder object is leaked on this path
Comment 13 Marek Kašík 2015-01-20 12:45:47 UTC
Created attachment 294973 [details] [review]
Move switches to a GtkListBox

(In reply to comment #7)
> Thanks for working on this, Marek! It looks really good to me. I've tried the
> patches and have a few minor changes to suggest:
> 
>  * The panel list boxes are missing a visible border

Done.
Comment 14 Marek Kašík 2015-01-20 12:47:31 UTC
Created attachment 294974 [details] [review]
Add label Applications

(In reply to comment #7)
> Thanks for working on this, Marek! It looks really good to me. I've tried the
> patches and have a few minor changes to suggest:
> 
>  * margin-start on Applications label should be 3, not 6

Done.
Comment 15 Marek Kašík 2015-01-20 12:49:19 UTC
Created attachment 294975 [details] [review]
Place switches into GtkListBox

(In reply to comment #7)
> Thanks for working on this, Marek! It looks really good to me. I've tried the
> patches and have a few minor changes to suggest:
> 
>  * border-width on edit-dialog-vbos should be 0

Done.


(In reply to comment #12)
> Review of attachment 294678 [details] [review]:
> 
> otherwise looks good
> 
> ::: panels/notifications/cc-edit-dialog.c
> @@ +324,3 @@
> +      g_warning ("Could not load ui: %s", error->message);
> +      g_error_free (error);
> +      return;
> 
> the builder object is leaked on this path

Fixed.
Comment 16 Rui Matos 2015-01-20 13:37:59 UTC
Review of attachment 294973 [details] [review]:

looks good otherwise

::: panels/notifications/notifications.ui
@@ +7,3 @@
     <property name="can_focus">True</property>
     <property name="hscrollbar_policy">never</property>
+    <property name="shadow_type">in</property>

"in" crept in again, should be none
Comment 17 Rui Matos 2015-01-20 13:38:32 UTC
Review of attachment 294974 [details] [review]:

++
Comment 18 Rui Matos 2015-01-20 13:39:53 UTC
Review of attachment 294975 [details] [review]:

yep
Comment 19 Marek Kašík 2015-01-20 14:19:24 UTC
Comment on attachment 294973 [details] [review]
Move switches to a GtkListBox

(In reply to comment #16)
> Review of attachment 294973 [details] [review]:
> 
> looks good otherwise
> 
> ::: panels/notifications/notifications.ui
> @@ +7,3 @@
>      <property name="can_focus">True</property>
>      <property name="hscrollbar_policy">never</property>
> +    <property name="shadow_type">in</property>
> 
> "in" crept in again, should be none

I'm sorry about that. It somehow got back during handling those 6 patches.
Comment 20 Marek Kašík 2015-01-20 14:20:24 UTC
Thank you all for your help. The patches have been pushed to master.