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 732065 - Install symbolic icons in the proper directory (Icons too large)
Install symbolic icons in the proper directory (Icons too large)
Status: RESOLVED FIXED
Product: geary
Classification: Other
Component: build
unspecified
Other Linux
: High normal
: 0.8.1
Assigned To: Geary Maintainers
Geary Maintainers
review
: 732947 733474 737024 737260 737309 737430 737537 737542 737664 738510 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-06-22 22:53 UTC by Matthias Clasen
Modified: 2014-10-16 08:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot - Geary with gtk+ from git master (166.79 KB, image/png)
2014-06-26 20:52 UTC, Yosef Or Boczko
  Details
proposed fix (646 bytes, patch)
2014-07-09 14:11 UTC, Mykola Dvornik
needs-work Details | Review
Screenshot of missed "X" icon (19.13 KB, image/jpeg)
2014-09-26 11:40 UTC, Nikos Roussos
  Details

Description Matthias Clasen 2014-06-22 22:53:04 UTC
Loading icons from a base directory (one that is directly added to the search path), instead of a subdirectory that is defined in the icon theme, is a legacy feature, and in particular it does not work very well for symbolic icons. After some recent gtk changes, these icons are now scaled to a giant size. This can be fixed by installing the icons into the subdirectory Adwaita/scalable/actions instead.
Comment 1 Yosef Or Boczko 2014-06-26 20:52:13 UTC
Created attachment 279341 [details]
Screenshot - Geary with gtk+ from git master
Comment 2 Jim Nelson 2014-06-26 21:19:19 UTC
Problem and solution are also described at https://mail.gnome.org/archives/gtk-devel-list/2014-June/msg00039.html
Comment 3 Yosef Or Boczko 2014-07-09 13:45:17 UTC
*** Bug 732947 has been marked as a duplicate of this bug. ***
Comment 4 Mykola Dvornik 2014-07-09 13:54:02 UTC
The proposed fix works for me.
Comment 5 Yosef Or Boczko 2014-07-09 13:54:58 UTC
(In reply to comment #4)
> The proposed fix works for me.

You can to make a patch and to attach it to this bug?
Comment 6 Mykola Dvornik 2014-07-09 13:57:49 UTC
I did it rather dirty by cp'ing icons to the suggested directory. I will have a look at the geary makefile to make a clean fix.
Comment 7 Mykola Dvornik 2014-07-09 14:11:34 UTC
Created attachment 280273 [details] [review]
proposed fix
Comment 8 Yosef Or Boczko 2014-07-09 14:14:22 UTC
Thanks, it works for me!
Comment 9 Jim Nelson 2014-07-09 20:36:00 UTC
I want to make sure I understand before I commit this: doesn't this patch install these icons only for Adwaita?  That is, if the user is using another theme, they will have these problems even with this patch?
Comment 10 Yosef Or Boczko 2014-07-09 20:39:18 UTC
Jim, I see the geary's custom icons also when I switch to elementary's
icons, so it should work.
Comment 11 Jim Nelson 2014-07-09 21:05:42 UTC
Review of attachment 280273 [details] [review]:

Unfortunately, this patch does not work with GTK+ 3.10 or 3.12.  The icons are not loaded, showing only the "missing image" icon in their place.  GTK+ 3.10 is not a target for the next release, but GTK+ 3.12 is, so I can't take this patch as-is.

There's two possibilities:

(a) Update the Geary code to properly search for the icons in the new location, potentially by adding a search path to the icon loader.  I have no idea if this is feasible, I'm just throwing it out there.

(b) The CMakeLists.txt file use conditionals to pick the proper install path.
Comment 12 Robert Schroll 2014-07-21 02:26:34 UTC
*** Bug 733474 has been marked as a duplicate of this bug. ***
Comment 13 Robert Schroll 2014-09-20 14:55:07 UTC
*** Bug 737024 has been marked as a duplicate of this bug. ***
Comment 14 Robert Schroll 2014-09-24 17:03:14 UTC
*** Bug 737260 has been marked as a duplicate of this bug. ***
Comment 15 Robert Schroll 2014-09-24 17:04:41 UTC
Note that Matthias Clasen posted a patch with a different work-around in bug #737260.
Comment 16 Robert Schroll 2014-09-25 01:20:36 UTC
*** Bug 737309 has been marked as a duplicate of this bug. ***
Comment 17 Jim Nelson 2014-09-25 23:48:22 UTC
Pushed to master, commit f1fc86

I'll probably include this in an 0.8.1.
Comment 18 Nikos Roussos 2014-09-26 11:39:33 UTC
I build it from repo for F21 and icons are back to normal. I found only one that seems to be missed out (see attachment).

RPM:
http://copr-be.cloud.fedoraproject.org/results/comzeradd/geary-git/fedora-21-x86_64/geary-140926-1.fc21/geary-140926-1.fc21.x86_64.rpm
Comment 19 Nikos Roussos 2014-09-26 11:40:19 UTC
Created attachment 287144 [details]
Screenshot of missed "X" icon
Comment 20 Robert Schroll 2014-09-26 18:12:19 UTC
*** Bug 737430 has been marked as a duplicate of this bug. ***
Comment 21 Jim Nelson 2014-09-26 18:17:06 UTC
Ok, we need to fix that "X" too.
Comment 22 Robert Schroll 2014-09-26 21:48:37 UTC
This may not be the place to discuss it, but that X is different from the one in the find bar, for example.  They used to be the same.  Was that change intentional?

We may also need to check the X in the misleading link warning.
Comment 23 Jim Nelson 2014-09-26 23:21:19 UTC
I don't recall if that was intentional or not.  I would have to look through git blame.
Comment 24 Robert Schroll 2014-09-28 23:13:26 UTC
*** Bug 737537 has been marked as a duplicate of this bug. ***
Comment 25 Yosef Or Boczko 2014-09-30 14:40:49 UTC
*** Bug 737664 has been marked as a duplicate of this bug. ***
Comment 26 Jim Nelson 2014-09-30 19:31:23 UTC
*** Bug 737542 has been marked as a duplicate of this bug. ***
Comment 27 Jim Nelson 2014-10-03 22:04:04 UTC
Remaining icons issues fixed in commit d7e813.  See bug #737861 for proper 3.14 fix to install icons in theme directory.
Comment 28 Dominik Menke 2014-10-16 08:09:45 UTC
*** Bug 738510 has been marked as a duplicate of this bug. ***