Fwd: [Kopete-devel] Re: [PATCH] ksystemtray.cpp

Martijn Klingens klingens at kde.org
Sat Apr 13 12:40:07 BST 2002


FYI, especially for Simon ;-)

Martijn

----------  Forwarded Message  ----------

Subject: [Kopete-devel] Re: [PATCH] ksystemtray.cpp
Date: Sat, 13 Apr 2002 08:23:12 +0200
From: Klas Kalass <klas.kalass at gmx.de>
To: Martijn Klingens <klingens at kde.org>, kde-devel at kde.org
Cc: kopete-devel at kde.org

[taking this to kde-devel, because I don't have posting rights to
kde-core-devel]

Am Donnerstag, 11. April 2002 13:38 schrieb Martijn Klingens:
> Attached patch allows Kopete to override the main window's close query by
> hiding to the systray and still make the standard Quit action from
> KSystemTray work.
>
> Ok to apply and to backport?
>
> Martijn

I agree that closing the main window to quit an application from the systray
icon is not good.
The style guide states the following:

http://developer.kde.org/documentation/standards/kde/style/basics/systray.htm
l "If the main interface of the application is a window then closing (with
 the 'X') that window will only close the window and keep the systray icon
 visible"

So one may not set the main interface as the application's main window (or
needs to overwrite close) as that interferes with the style guide. So you
need to overwrite the tray menu from the application as it currently is, to
overwrite quit.

This patch is very much needed, I think even if it introduces new problems in
existing apps it fixes a very bad bug.

Klas
_______________________________________________
Kopete-devel mailing list
Kopete-devel at mail.kde.org
http://mail.kde.org/mailman/listinfo/kopete-devel

-------------------------------------------------------





More information about the kde-core-devel mailing list