--Boundary-00=_tfxKDHoddHTGbCF
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

I know the systray is planned for extinction, but I wonder whether the
attached patch is useful? I only have a low res screen, but want to see tray
icon statuses, and the default size is just too intrusive.
Basically this allows the iconsizes in the system tray to be shrunk by the
addition of the setting:-

[System Tray]
systrayIconWidth=16

to config/kdeglobals

This is an existing setting that is read by the KSystray base class but not
used by the tray applet.

Although this won't work for tray apps that don't use a sized icon (kcpuload).

Cheers,

--
Ivor Hewitt.

--Boundary-00=_tfxKDHoddHTGbCF
Content-Type: text/x-diff;
charset="us-ascii";
name="systray.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="systray.diff"

Index: systemtrayapplet.h
================================================== =================
--- systemtrayapplet.h (revision 460976)
+++ systemtrayapplet.h (working copy)
@@ -102,6 +102,7 @@
KActionSelector* m_iconSelector;
QTimer* m_autoRetractTimer;
bool m_autoRetract;
+ int m_iconWidth;
};

class TrayEmbed : public QXEmbed
Index: systemtrayapplet.cpp
================================================== =================
--- systemtrayapplet.cpp (revision 460976)
+++ systemtrayapplet.cpp (working copy)
@@ -406,6 +406,9 @@

conf->setGroup("HiddenTrayIcons");
m_hiddenIconList = conf->readListEntry("Hidden");
+
+ conf->setGroup("System Tray");
+ int m_iconWidth = conf->readNumEntry("systrayIconWidth", 22);
}

void SystemTrayApplet::systemTrayWindowAdded( WId w )
@@ -453,7 +456,7 @@
}

connect(emb, SIGNAL(embeddedWindowDestroyed()), SLOT(updateTrayWindows()));
- emb->resize(24, 24);
+ emb->resize(m_iconWidth, m_iconWidth);
if (shouldHide(w))
{
emb->hide();
@@ -626,7 +629,7 @@

int SystemTrayApplet::maxIconWidth() const
{
- int largest = 24;
+ int largest = m_iconWidth;

TrayEmbedList::const_iterator lastEmb = m_shownWins.end();
for (TrayEmbedList::const_iterator emb = m_shownWins.begin(); emb != lastEmb; ++emb)
@@ -661,7 +664,7 @@

int SystemTrayApplet::maxIconHeight() const
{
- int largest = 24;
+ int largest = m_iconWidth;

TrayEmbedList::const_iterator lastEmb = m_shownWins.end();
for (TrayEmbedList::const_iterator emb = m_shownWins.begin(); emb != m_shownWins.end(); ++emb)

--Boundary-00=_tfxKDHoddHTGbCF
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

=

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib=

e <<

--Boundary-00=_tfxKDHoddHTGbCF--