[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Python Applet and configChanged
From:       Richard Dale <richard.j.dale () gmail ! com>
Date:       2009-05-27 15:39:14
Message-ID: 491684420905270839v1b22e60fxc2e51e131e5ddc90 () mail ! gmail ! com
[Download RAW message or body]

On Wed, May 27, 2009 at 2:55 PM, Petri Damstén <petri.damsten@gmail.com> wrote:
> On Tuesday 26 May 2009 21:05:02 Aaron J. Seigo wrote:
>> On Tuesday 26 May 2009, Petri Damstén wrote:
>> > Yes, seems to be called only once now. I think it still gets called when
>> > Cancel is pressed if configLoader == 0?
>>
>> this should be better in trunk now. testing with the javascript
>> Plasma::ScriptEngine i'm only getting configChanged calls when the config
>> actually changes now. huzzah for that.
>
> Works with python applet too. Is it ok to commmit configChanged() patch to
> pyappletscript.py?
As well as your patch don't we need a 'do nothing' default
implemtation of configChanged()?

Index: plasmascript.py
===================================================================
--- plasmascript.py     (revision 966580)
+++ plasmascript.py     (working copy)
@@ -57,6 +57,9 @@
     def init(self):
         pass

+    def configChanged(self):
+        pass
+
     def paintInterface(self, painter, options, rect):
         pass

-- Richard
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic