Re: detection if applet is running

2011-10-29 Thread Andriy Rysin
On 10/29/2011 06:38 AM, Aaron J. Seigo wrote: On Saturday, October 29, 2011 12:18:00 Ruurd Pels wrote: On Friday 28 October 2011 12:46:38 Andriy Rysin wrote: Yes, but I can get the keyboard layouts from x11 directly (that's what applets and systray is doing), that'll be more efficient and would

Re: detection if applet is running

2011-10-29 Thread Aaron J. Seigo
On Saturday, October 29, 2011 12:18:00 Ruurd Pels wrote: > On Friday 28 October 2011 12:46:38 Andriy Rysin wrote: > > Yes, but I can get the keyboard layouts from x11 directly (that's what > > applets and systray is doing), that'll be more efficient and would not > > require dbus or even kded daemo

Re: detection if applet is running

2011-10-29 Thread Ruurd Pels
On Friday 28 October 2011 12:46:38 Andriy Rysin wrote: > Yes, but I can get the keyboard layouts from x11 directly (that's what > applets and systray is doing), that'll be more efficient and would not > require dbus or even kded daemon running I think it would be preferred to use KDE functionalit

Re: detection if applet is running

2011-10-28 Thread Andriy Rysin
On 10/28/2011 12:41 PM, Aaron J. Seigo wrote: On Friday, October 28, 2011 11:26:05 Andriy Rysin wrote: We already have that dbus API in keyboard kded daemon could the kded daemon be checked to see if keyboard layouts are available, and if so, show that button in the unlock dialog? does it reall

Re: detection if applet is running

2011-10-28 Thread Aaron J. Seigo
On Friday, October 28, 2011 11:26:05 Andriy Rysin wrote: > We already have that dbus API in keyboard kded daemon could the kded daemon be checked to see if keyboard layouts are available, and if so, show that button in the unlock dialog? does it really need to rely on whether or not there is a s

Re: detection if applet is running

2011-10-28 Thread Andriy Rysin
On 10/28/2011 02:38 AM, Aaron J. Seigo wrote: On Thursday, October 27, 2011 23:35:52 Andriy Rysin wrote: 2) make keyboard layout applet exposes some dbus to make it detectable when running (feels a bit too "heavy") that would be a preferred way ... note, however, that one can have multiple inst

Re: detection if applet is running

2011-10-28 Thread Andriy Rysin
On 10/28/2011 09:20 AM, Ruurd Pels wrote: On Thursday 27 October 2011 23:35:52 Andriy Rysin wrote: 2) make keyboard layout applet exposes some dbus to make it detectable when running (feels a bit too "heavy") Yes. Better. Why does it feel heavy? I'd venture the thought that doing so could expo

Re: detection if applet is running

2011-10-28 Thread Ruurd Pels
On Thursday 27 October 2011 23:35:52 Andriy Rysin wrote: > I did a quick research and I see two ways to solve this in > keyboard_layout_widget (embedded component used in lockdlg): > 1) link plasma libs and do something like (in pseudo-code) > foreach(containment, new Corona()->containments()) { >

Re: detection if applet is running

2011-10-27 Thread Aaron J. Seigo
On Thursday, October 27, 2011 23:35:52 Andriy Rysin wrote: > I did a quick research and I see two ways to solve this in > keyboard_layout_widget (embedded component used in lockdlg): > 1) link plasma libs and do something like (in pseudo-code) > foreach(containment, new Corona()->containments()) {

detection if applet is running

2011-10-27 Thread Andriy Rysin
I need to detect if keyboard layout indicator applet is running and show the keyboard layout button in the screen lock dialog (bug 276692 ). Currently it only checks if "indicator" option is on which turns on systray icon but user can bypass that opt