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 711389 - If an app is using a smaller icon, the row is shorter than usual
If an app is using a smaller icon, the row is shorter than usual
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: 2013-11-04 10:51 UTC by Andreas Nilsson
Modified: 2015-05-11 16:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (41.82 KB, image/png)
2013-11-04 10:51 UTC, Andreas Nilsson
  Details
align icons (1.46 KB, patch)
2015-04-30 12:40 UTC, mhatina
none Details | Review
align icons (1.42 KB, patch)
2015-05-04 09:20 UTC, mhatina
committed Details | Review
screenshot (aligned) (27.84 KB, image/png)
2015-05-04 09:21 UTC, mhatina
  Details

Description Andreas Nilsson 2013-11-04 10:51:14 UTC
Created attachment 258909 [details]
screenshot

I discovered on a laptop in this household that the application Autokey only shipped a 32x32 icon. While that is a bug in Autokey itself, it also seems that there is a bug in gnome-control-center in that the rows get too slim if there isn't a 48x48 icon to fill it.
Comment 1 Andreas Nilsson 2013-11-04 10:51:44 UTC
perhaps another potential use of a css min-height property.
Comment 2 Fabiana Simões 2013-11-04 11:03:44 UTC
Besides the height of the row, the alignment of the label for Autokey also seems off - It is placed too far to the left, in comparison to the other labels: http://pasteboard.co/10J9eQ19.png
Comment 3 mhatina 2015-04-30 12:40:29 UTC
Created attachment 302646 [details] [review]
align icons
Comment 4 Bastien Nocera 2015-04-30 12:53:58 UTC
Review of attachment 302646 [details] [review]:

This looks good, can you upload a screenshot as well?

::: panels/notifications/cc-notifications-panel.c
@@ +283,3 @@
   gtk_widget_set_margin_bottom (w, 8);
+  gtk_size_group_add_widget (GTK_SIZE_GROUP (gtk_builder_get_object (panel->builder, "sizegroup1")),
+                             w);

No need to put 2 characters on another line. Our monitors are wide :)
Comment 5 mhatina 2015-05-04 09:20:40 UTC
Created attachment 302844 [details] [review]
align icons

Fixed.
Comment 6 mhatina 2015-05-04 09:21:13 UTC
Created attachment 302845 [details]
screenshot (aligned)
Comment 7 Bastien Nocera 2015-05-04 12:49:20 UTC
Review of attachment 302844 [details] [review]:

Looks good. Please cherry-pick in gnome-3-14 as well.
Comment 8 Marek Kašík 2015-05-11 16:18:31 UTC
Comment on attachment 302844 [details] [review]
align icons

I've pushed the patch into master and gnome-3-14 branches. I've also added 'const' in front of the 'gchar *app_name' to avoid the warning about discarding of const qualifier.
Comment 9 Marek Kašík 2015-05-11 16:28:05 UTC
(In reply to Marek Kašík from comment #8)
> Comment on attachment 302844 [details] [review] [review]
> align icons
> 
> I've pushed the patch into master and gnome-3-14 branches. I've also added
> 'const' in front of the 'gchar *app_name' to avoid the warning about
> discarding of const qualifier.

Sorry, wrong bug. I'm going to push this one right now.
Comment 10 Marek Kašík 2015-05-11 16:41:41 UTC
Comment on attachment 302844 [details] [review]
align icons

(In reply to Bastien Nocera from comment #7)
> Review of attachment 302844 [details] [review] [review]:
> 
> Looks good. Please cherry-pick in gnome-3-14 as well.

I've pushed this to master and gnome-3-14 branches.