Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Using LO 3.5.x on a system with GTK < 2.15.0 loses all the sub-menu icons,
because there is no menu item arrow-scaling property until then, so the
code introduced in commit 948c14ee appears to scale the arrows to 0%.

I realize that's a pretty old GTK version, but I ran into this on my Ubuntu
8.04 LTS system (GTK 2.12.9) and assume there are some others (like RHEL)
that will have older versions for a while.  Plus, the requirements page on
the LO web site still lists GTK 2.10 as the requirement.

Attached is a small patch that restores the arrow icons when running
against GTK < 2.15.0, essentially by picking an arbitrary (but reasonable
in my tests) default scaling.  I also check before attempting to retrieve
the arrow-scaling style to avoid a bunch of GTK runtime warning messages,
but it works fine too if only the default scaling line is changed since GTK
doesn't change the variable contents for an unknown style.

-- David

Attachment: gtk-submenu-icon.patch
Description: Binary data


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.