2007/10/9, Oswald Buddenhagen <<a href="mailto:ossi@kde.org">ossi@kde.org</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, Oct 08, 2007 at 09:01:57PM -0400, Andriy Rysin wrote:<br>> ok, thanks I've tried to reuse KPluginFactory and it works, just that it<br>> complains about kxkb library being not a module (see below) and I had to
<br>> keep "lib" prefix, otherwise it would not find it.<br>><br>well, there are enough examples how to do it right. ;)<br>(and no, i don't know how to do it.)</blockquote><div><br>so far I could not find them but will keep looking... :) 
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> if you could please take a look at it and hopefully approve<br>><br>well, i don't like the #else branches. this dead code will only bitrot.
<br>just purge it - it can be merged from a past revision if it turns out<br>to be needed again.<br>adhere to the indentation style (no tabs) and paren spacing.</blockquote><br><div>ok, I've cleaned it up and pushed the code, using kxkb in lockdlg got a bit simpler now and it looks much nicer... :)
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">how does the plugin behave if no layout switching is configured</blockquote><div><br>
That was a good question - I've refactored the code a bit and now it handles this situation gracefully - it reads kxkb config and if it's not configured it just does not show up. Currently the main (parent kxkb) widget will be created but it'll be hidden and nothing will be created inside. If I find a better way - I'll try to implement that.
<br><br>Please let me know if you see any problems.<br><br>Thanks,<br>Andriy<br><br></div></div>