Bug 71143 - kwallet in system tray does not provide configure option
Summary: kwallet in system tray does not provide configure option
Status: RESOLVED FIXED
Alias: None
Product: kwalletmanager
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: George Staikos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-23 20:54 UTC by Richard Bos
Modified: 2004-01-27 07:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Bos 2003-12-23 20:54:41 UTC
Version:            (using KDE KDE 3.1.94)
OS:          Linux

When right clicking on the kwaller manager icon in the
system tray no access is provided to the wallet manager's
configuration menu.
There is only restor or minimize and quit.
Comment 1 George Staikos 2004-01-27 07:05:46 UTC
Subject: kdeutils/kwallet

CVS commit by staikos: 

fix minor bug with last commit, and add Configure menu entry to the tray menu
CCMAIL: 71143-done@bugs.kde.org


  M +7 -4      kwalletmanager.cpp   1.38


--- kdeutils/kwallet/kwalletmanager.cpp  #1.37:1.38
@@ -60,8 +60,9 @@ KWalletManager::KWalletManager(QWidget *
                 if (KWallet::Wallet::isOpen(*it)) {
                         _tray->setPixmap(loadSystemTrayIcon("wallet_open"));
+                        QToolTip::remove(_tray);
+                        QToolTip::add(_tray, i18n("KDE Wallet: A wallet is open."));
                         break;
                 }
         }
-        _tray->show();
 
         _iconView = new KWalletIconView(this, "kwalletmanager icon view");
@@ -97,7 +98,8 @@ KWalletManager::KWalletManager(QWidget *
                         SLOT(createWallet()), actionCollection(),
                         "wallet_create");
-        new KAction(i18n("Configure &Wallet..."), "configure", 0, this,
-                        SLOT(setupWallet()), actionCollection(),
+        KAction *act = new KAction(i18n("Configure &Wallet..."), "configure",
+                        0, this, SLOT(setupWallet()), actionCollection(),
                         "wallet_settings");
+        act->plug(_tray->contextMenu());
         KStdAction::quit(this, SLOT(shuttingDown()), actionCollection());
         KStdAction::keyBindings( this, SLOT( slotConfigureKeys() ), actionCollection() );
@@ -109,4 +111,5 @@ KWalletManager::KWalletManager(QWidget *
                            this, SLOT(deleteWallet()) );
 
+        _tray->show();
 }