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 674445 - layout and size issues in notification area
layout and size issues in notification area
Status: RESOLVED OBSOLETE
Product: gnome-panel
Classification: Other
Component: notification area
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: Panel Maintainers
Panel Maintainers
: 675912 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-04-19 23:41 UTC by Michael Biebl
Modified: 2015-06-08 21:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot1 (22.62 KB, image/png)
2012-04-19 23:42 UTC, Michael Biebl
Details
screenshot2 (29.85 KB, image/png)
2012-04-19 23:42 UTC, Michael Biebl
Details
screenshot3 (46.49 KB, image/png)
2012-04-19 23:42 UTC, Michael Biebl
Details
screenshot4 (42.64 KB, image/png)
2012-04-19 23:43 UTC, Michael Biebl
Details

Description Michael Biebl 2012-04-19 23:41:50 UTC
In GNOME 3.4, the notification area has serious layout and size issues.
All the relevant compontents are from GNOME 3.4
gtk 3.4.1
gnome-themes-standard 3.4.1
gnome-panel 3.4.1

The (default) panel size is 24pix

I've attached a series of pictures where you can see several problems

screenshot1.png: made directly after login. 
 - The icons for sound, battery and bluetooth look too big.

screenshot2.png: started a few additional applications which use the notification area. 
 - The distance between the different icons in the notification varies and is uneven.

screenshot3.png: killed gnome-panel, so it was restartet.
 - The distance between the icons is more balanced, but still not completely correct
 - The order of the icons changed randomly.

screenshot4.png: stopped the additional applications from 2/, to get back to the original state.
Comment 1 Michael Biebl 2012-04-19 23:42:16 UTC
Created attachment 212393 [details]
screenshot1
Comment 2 Michael Biebl 2012-04-19 23:42:38 UTC
Created attachment 212394 [details]
screenshot2
Comment 3 Michael Biebl 2012-04-19 23:42:56 UTC
Created attachment 212395 [details]
screenshot3
Comment 4 Michael Biebl 2012-04-19 23:43:25 UTC
Created attachment 212396 [details]
screenshot4
Comment 5 Michael Biebl 2012-04-19 23:51:41 UTC
(In reply to comment #0)
> In GNOME 3.4, the notification area has serious layout and size issues.
> All the relevant compontents are from GNOME 3.4
> gtk 3.4.1
> gnome-themes-standard 3.4.1
> gnome-panel 3.4.1
> 
> The (default) panel size is 24pix
> 
> I've attached a series of pictures where you can see several problems

The icons on the left side (applications starters) have much less padding then the icons in the notification area.
Comment 6 Vincent Untz 2012-04-20 07:10:41 UTC
Can you play with the setting documented in http://git.gnome.org/browse/gnome-panel/commit/applets/notification_area?id=ae637906f49f467e4ad8d7cf5f83d63f9cfbe6b7 ?

I see this in adwaita which is likely relevant: -NaTrayApplet-icon-padding: 12;

Also, are the apps you use to test GTK+ apps?
Comment 7 Michael Biebl 2012-04-20 09:56:47 UTC
(In reply to comment #6)
> Can you play with the setting documented in
> http://git.gnome.org/browse/gnome-panel/commit/applets/notification_area?id=ae637906f49f467e4ad8d7cf5f83d63f9cfbe6b7
> ?
> 
> I see this in adwaita which is likely relevant: -NaTrayApplet-icon-padding: 12;

will test

> Also, are the apps you use to test GTK+ apps?

It was a mix, I used GTK2 apps, Qt/KDE apps and notifications (triggered via notify-send)
Comment 8 Vincent Untz 2012-04-20 10:21:28 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > Also, are the apps you use to test GTK+ apps?
> 
> It was a mix, I used GTK2 apps, Qt/KDE apps and notifications (triggered via
> notify-send)

Ok. I'm unsure if the padding works in non gtk3 apps, so that could explain part of the weirdness.
Comment 9 Germán Poo-Caamaño 2012-04-20 17:28:42 UTC
(In reply to comment #8)
> [...]
> Ok. I'm unsure if the padding works in non gtk3 apps, so that could explain
> part of the weirdness.

The padding suggested by Vincent is for NaTrayApplet, which should
restrict the space available for any icon inside.
Comment 10 Michael Biebl 2012-04-24 00:02:48 UTC
(In reply to comment #6)
> Can you play with the setting documented in
> http://git.gnome.org/browse/gnome-panel/commit/applets/notification_area?id=ae637906f49f467e4ad8d7cf5f83d63f9cfbe6b7
> ?
> 
> I see this in adwaita which is likely relevant: -NaTrayApplet-icon-padding: 12;

Playing around with NaTrayApplet-icon-padding didn't really help.
It did have a certain influence on the vertical distribution of the icons, but that's all.

I still had the problem of the icons being too big (compare the icons in the screenshot with the one from gnome-shell), the vertical alignment being messed up between the different kinds of applications.

This might be theme/gtk+ related as I dont't remember seing that problem in GNOME 3.2 and gnome-panel didn't really have relevant changes afaics.

Right now the notification area in GNOME 3.4 is pretty much broken.
Comment 11 Michael Biebl 2012-04-25 03:38:27 UTC
Not sure if it is relevant, but if I run notification-daemon from the console and call "notify-send foo", I get the following log message:

(notification-daemon:1805): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -23 and height 24

width -23 ???
Comment 12 Vincent Untz 2012-05-14 13:53:57 UTC
*** Bug 675912 has been marked as a duplicate of this bug. ***
Comment 13 Bojan Smojver 2012-05-15 02:40:27 UTC
Is there are workaround, a fix or a build we can try here? Speaking from Fedora 17 perspective.
Comment 14 Antonio Ospite 2012-05-16 09:32:39 UTC
I too am experiencing this behavior, I can test patches if needed.

Thanks,
   Antonio
Comment 15 Bojan Smojver 2012-05-30 00:46:04 UTC
I think this somehow just got better in Fedora 17. The gaps between icons seem a bit smaller.

Would anyone hazard a guess as to what may have contributed to a slightly better look here?
Comment 16 Bojan Smojver 2012-05-30 01:01:36 UTC
(In reply to comment #15)
> I think this somehow just got better in Fedora 17. The gaps between icons seem
> a bit smaller.

And reverted back to what it was after logout/login. Truly mysterious...
Comment 17 Bojan Smojver 2012-05-30 01:09:42 UTC
(In reply to comment #11)
> Not sure if it is relevant, but if I run notification-daemon from the console
> and call "notify-send foo", I get the following log message:
> 
> (notification-daemon:1805): Gtk-WARNING **: gtk_widget_size_allocate(): attempt
> to allocate widget with width -23 and height 24
> 
> width -23 ???

I am seeing this too.
Comment 18 Bojan Smojver 2012-05-30 02:29:21 UTC
It seems to me that only the "new" icons, the one in the form of SVG, have a problem here.
Comment 19 Bojan Smojver 2012-06-09 22:56:55 UTC
(In reply to comment #15)
> I think this somehow just got better in Fedora 17. The gaps between icons seem
> a bit smaller.
> 
> Would anyone hazard a guess as to what may have contributed to a slightly
> better look here?

After ever suspend/resume, the gaps get smaller.
Comment 20 Bojan Smojver 2012-09-12 04:49:23 UTC
Is this going to be addressed in 3.6? Can someone point to a commit that maybe fixed it?
Comment 21 Fabio Durán Verdugo 2012-12-08 03:09:06 UTC
any news?
Comment 22 Sébastien Wilmet 2012-12-08 11:00:27 UTC
In 3.6 it seems that the icons have the good size, but some of them are still separated by too much space.

But the fallback mode is not maintained anymore.
Comment 23 Alexandre Franke 2015-06-08 17:43:29 UTC
Is this still an issue with current version?
Comment 24 Bojan Smojver 2015-06-08 21:45:47 UTC
(In reply to Alexandre Franke from comment #23)
> Is this still an issue with current version?

Not for me.
Comment 25 Alexandre Franke 2015-06-08 21:48:37 UTC
This seems to have been fixed in the meantime. Feel free to reopen if you face the issue again.