[Kde-kiosk] kcalc

Waldo Bastian kde-kiosk@mail.kde.org
Mon, 16 Dec 2002 10:37:18 +0100


--Boundary-00=_O7Z/9+VbduFU4cu
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Monday 16 December 2002 00:41, Bill Kendrick wrote:
> Hmm... Kcalc seems to not save config changes when you set up
> an /etc/kde3/kcalcrc with "[$i]" (immutable) at the top.
>
> However, you can still MAKE config changes, which last until kcalc is
> closed.
>
> This is KCalc 1.3.1 under KDE 3.0.5.
>
> Is there any newer version that disables/removes the 'Configure' button?

No, not yet, but I just added it. With some luck it will be in KDE 3.0.6, 
otherwise you will have to wait for KDE 3.1.

If you compile from source you can apply the attached patch.

Cheers,
Waldo
-- 
bastian@kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian@suse.com

--Boundary-00=_O7Z/9+VbduFU4cu
Content-Type: text/x-diff;
  charset="iso-8859-1";
  name="kcalc.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="kcalc.diff"

Index: kcalc.cpp
===================================================================
RCS file: /home/kde/kdeutils/kcalc/kcalc.cpp,v
retrieving revision 1.75
diff -u -r1.75 kcalc.cpp
--- kcalc.cpp	22 Sep 2002 09:30:16 -0000	1.75
+++ kcalc.cpp	16 Dec 2002 09:30:58 -0000
@@ -117,6 +117,8 @@
 	mConfigButton->setAutoDefault(false);
 	QToolTip::add(mConfigButton, i18n("Click to configure KCalc"));
 	connect(mConfigButton, SIGNAL(clicked()), this, SLOT(configclicked()));
+	if (KGlobal::config()->isImmutable())
+	   mConfigButton->hide();
 
 	mHelpMenu = new KHelpMenu(this, KGlobal::instance()->aboutData());
 

--Boundary-00=_O7Z/9+VbduFU4cu--