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 742116 - Huge openshot icon on notification list
Huge openshot icon on notification list
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Notifications
3.14.x
Other Linux
: Normal minor
: ---
Assigned To: Marek Kašík
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-12-30 13:58 UTC by Pedro Beja
Modified: 2015-01-07 18:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
huge icon (60.65 KB, image/jpeg)
2014-12-30 13:58 UTC, Pedro Beja
  Details
notifications: Force smaller icons (1.22 KB, patch)
2015-01-05 14:28 UTC, Bastien Nocera
committed Details | Review

Description Pedro Beja 2014-12-30 13:58:31 UTC
Created attachment 293478 [details]
huge icon

Huge openshot icon on notification list

please check screenshot attached.

thanks
regards
althaser
Comment 1 Marek Kašík 2015-01-02 12:39:03 UTC
Hi Pedro,

I can not reproduce the problem.
Are all icons as big as the one I see on the screenshot?
Which version of gnome-control-center do you use?
Which distribution do you use?

Marek
Comment 2 Pedro Beja 2015-01-02 14:09:46 UTC
Hey Marek,

It is just openshot that has a big icon, everything else is fine.
I am using Debian sid here, with gnome-control-center 1:3.14.2-2

thanks
althaser
Comment 3 Bastien Nocera 2015-01-05 14:28:11 UTC
Looks like an application bug, but we should probably do better than this. The attached patch below should be able to fix this, but I would have expected gtk_image_new_from_gicon() to do the resizing job itself...

Which version of openshot are you using? A link to the exact package you're using on https://www.debian.org/distrib/packages would be appreciated.
Comment 4 Bastien Nocera 2015-01-05 14:28:21 UTC
Created attachment 293822 [details] [review]
notifications: Force smaller icons

To work-around application icons that would be too big.
Comment 5 Pedro Beja 2015-01-05 14:57:00 UTC
Hey Bastien,

I am using openshot 1.4.3-1.1 -> https://packages.debian.org/sid/openshot

Cheers,
Pedro
Comment 6 Marek Kašík 2015-01-05 17:53:28 UTC
(In reply to comment #3)
> Looks like an application bug, but we should probably do better than this. The
> attached patch below should be able to fix this, but I would have expected
> gtk_image_new_from_gicon() to do the resizing job itself...

The problem here is that gdk_pixbuf_new_from_stream_at_scale() in icon_info_ensure_scale_and_pixbuf() from gtkicontheme.c gets negative size (-48 in this case). If I switch the sign then the icon has correct size.
I'll continue on this tomorrow.
Comment 7 Bastien Nocera 2015-01-05 17:56:29 UTC
(In reply to comment #6)
> (In reply to comment #3)
> > Looks like an application bug, but we should probably do better than this. The
> > attached patch below should be able to fix this, but I would have expected
> > gtk_image_new_from_gicon() to do the resizing job itself...
> 
> The problem here is that gdk_pixbuf_new_from_stream_at_scale() in
> icon_info_ensure_scale_and_pixbuf() from gtkicontheme.c gets negative size (-48
> in this case). If I switch the sign then the icon has correct size.
> I'll continue on this tomorrow.

That sounds like a "-1" to mean "don't resize it" got misinterpreted somewhere along the way.
Comment 8 Marek Kašík 2015-01-06 12:32:51 UTC
Yes, it seems so. The code which uses the unhandled -1 (in icon_info->scale) got in by this commit: https://git.gnome.org/browse/gtk+/commit/?id=fea939b3d75a97ded2e631235644500fcc2301cf .
I'll file a gtk+ bug for this.
Comment 9 Bastien Nocera 2015-01-06 12:43:47 UTC
Good detective work, thanks Marek.
Comment 10 Marek Kašík 2015-01-06 13:32:23 UTC
(In reply to comment #9)
> Good detective work, thanks Marek.

You're welcome.

I've filed the bug here: https://bugzilla.gnome.org/show_bug.cgi?id=742455.
Comment 11 Marek Kašík 2015-01-07 11:17:36 UTC
Review of attachment 293822 [details] [review]:

Thank you for the patch. It looks good and fixes the problem for me.
Comment 12 Bastien Nocera 2015-01-07 18:11:12 UTC
Attachment 293822 [details] pushed as db756d7 - notifications: Force smaller icons