Panel icon sizing bug in 4.4
Mike Kasick
mkasick-pd at club.cc.cmu.edu
Mon May 24 03:29:54 CEST 2010
On Sun, May 23, 2010 at 10:28:00AM -0700, Chani wrote:
> one of the bug reports mentioned that KDE's default icon size should be
> respected, although it's not clear whether that was implemented.
It wasn't.
> if that setting is not followed, then you have found a bug, and patches
> are welcome. :)
OK, attached are three fairly trivial patches.
The first patch, against kdebase-runtime (both Debian 4.4.3-2 and KDE 4.5
SVN trunk) reenables the ability to change the "Panel" icon size in
kcm_icons. It also disables the "Animate Icons" checkbox as that checkbox
is disabled for most of the other icon types, and appers to be obsolete in
KDE 4.
The second and third patches do the same thing, but the second applies to
Debian 4.4.3-2 while the third applies to KDE 4.5 SVN trunk. Both patches,
against kdelibs, changes IconWidget::sizeHint to return
IconSize(KIconLoader::Panel) instead of KIconLoader::SizeMedium when no
preferred icon size has already been set (4.5 only). Note that
KIconLoader::Panel defaults to KIconLoader::SizeMedium, so there's no
change unless someone modifies the setting in the Appearance dialog.
I've tested the first two patches against Debian 4.4.3-2 and they resolve
the problem, allowing the user to configure the capped panel icon size.
plasma-desktop has to be restarted for a new capped icon size to take
effect, since IconWidget::sizeHint is only queried on applet
initialization. The effect is also immediate (without plasma-desktop
restart) on any new applet added to the panel.
I've not tested the patches against KDE SVN trunk, I've just ensured they
apply cleanly. Unfortunately I'm not setup to build and test trunk right
now, if someone else can try these patches that would be great. If you do
a partial build, the modified output files are kcm_icons.so and
libplasma.so.3.0.0.
So actually, I haven't confirmed that the icon size cap problem exists in
KDE 4.5. I suspect it does, since it's definitely not user configurable
right now. It looks like a bunch of code was added to IconWidget::sizeHint
to allow individual applets to set a preferred icon size. However the
"icon" and "kickoff" applets appear not to touch this.
Are the first two patches fair game for KDE 4.4.4? I'd really love to see
a user configurable panel icon size in Debian for accesibility purposes,
and 4.5 is going to hit too late for squeeze.
I'm assuming the first and third patches are appropriate for KDE 4.5.
Again, they're fairly trivial, but need to be tested.
Thanks everyone!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdebase-runtime_kcmicons_Panel_size_enabled.diff
Type: text/x-diff
Size: 482 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20100523/1576de6d/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdelibs_iconwidget_Panel_sizeHint_4.4.3.diff
Type: text/x-diff
Size: 530 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20100523/1576de6d/attachment-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdelibs_iconwidget_Panel_sizeHint_trunk.diff
Type: text/x-diff
Size: 546 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20100523/1576de6d/attachment-0002.bin
More information about the Plasma-devel
mailing list