Re: API for binding and unbinding a key combo?

2008-03-31 Thread Bastien Nocera
On Thu, 2008-03-27 at 20:16 +0100, Thiago Macieira wrote: snip KDE 4 now has a centralised global shortcut management system. The reasons for doing that are because: - information is persistent: you're notified of a conflict even if the other app isn't running or even if it has never

Re: API for binding and unbinding a key combo?

2008-03-31 Thread Bastien Nocera
On Sun, 2008-03-30 at 16:46 +, Tuomo Valkonen wrote: On 2008-03-30, Justin Clift [EMAIL PROTECTED] wrote: http://gentoo-wiki.com/TIP_Make_a_Screenshot_with_PrintScreen_Key That stuff is for _excecuting_ a program, and listed is 'xbindkeys' independent of any WM, depending on just

Re: API for binding and unbinding a key combo?

2008-03-31 Thread Thiago Macieira
On Monday 31 March 2008 11:52:43 Bastien Nocera wrote: On Thu, 2008-03-27 at 20:16 +0100, Thiago Macieira wrote: This API is accessible via D-Bus. If wanted, we could work on making it an fd.o spec. What API is available via D-Bus exactly? I was thinking of adding to the

Re: API for binding and unbinding a key combo?

2008-03-31 Thread Bastien Nocera
On Mon, 2008-03-31 at 11:07 +0100, Thiago Macieira wrote: On Monday 31 March 2008 11:52:43 Bastien Nocera wrote: On Thu, 2008-03-27 at 20:16 +0100, Thiago Macieira wrote: This API is accessible via D-Bus. If wanted, we could work on making it an fd.o spec. What API is available via

Re: API for binding and unbinding a key combo?

2008-03-31 Thread Tuomo Valkonen
On 2008-03-31, Bastien Nocera [EMAIL PROTECTED] wrote: That stuff is for _excecuting_ a program, and listed is 'xbindkeys' independent of any WM, depending on just that program being running, just like the previous links require gnome-settings-fuckup-daemon or some such thing (i.e. a bloated

Re: API for binding and unbinding a key combo?

2008-03-31 Thread Bastien Nocera
On Mon, 2008-03-31 at 10:29 +, Tuomo Valkonen wrote: On 2008-03-31, Bastien Nocera [EMAIL PROTECTED] wrote: That stuff is for _excecuting_ a program, and listed is 'xbindkeys' independent of any WM, depending on just that program being running, just like the previous links require

Re: API for binding and unbinding a key combo?

2008-03-31 Thread Tuomo Valkonen
On 2008-03-31, Bastien Nocera [EMAIL PROTECTED] wrote: Not everyone's requirements are those from 1980's Unix hackers. Not everyone's requirements are those of Idiot Users that Gnome and other DE developers only target (in addition to themselves), and completely ignore and make life harder for

Re: API for binding and unbinding a key combo?

2008-03-31 Thread Thiago Macieira
On Monday 31 March 2008 12:23:22 Bastien Nocera wrote: Well, that's pretty much what we want to do as well, to avoid applications having their own code, and needing to be running to capture the key (we've already got the first and last bullet items, and want to implement the second one).

Re: API for binding and unbinding a key combo?

2008-03-31 Thread Bastien Nocera
On Mon, 2008-03-31 at 11:52 +0100, Thiago Macieira wrote: On Monday 31 March 2008 12:23:22 Bastien Nocera wrote: Well, that's pretty much what we want to do as well, to avoid applications having their own code, and needing to be running to capture the key (we've already got the first and

Re: API for binding and unbinding a key combo?

2008-03-31 Thread Jakob Petsovits
On Monday, 31. March 2008, Tuomo Valkonen wrote: On 2008-03-31, Bastien Nocera [EMAIL PROTECTED] wrote: Not everyone's requirements are those from 1980's Unix hackers. Not everyone's requirements are those of Idiot Users that Gnome and other DE developers only target (in addition to

Re: API for binding and unbinding a key combo?

2008-03-31 Thread Tuomo Valkonen
On 2008-03-31, Jakob Petsovits [EMAIL PROTECTED] wrote: try to work with those other developers so that the solution doesn't only satisfy the needs of one single group but the needs of both. They don't listen. They don't have to listen. They're big and sponsored by powerful corporations,

Re: API for binding and unbinding a key combo?

2008-03-31 Thread Jakob Petsovits
On Monday, 31. March 2008, Tuomo Valkonen wrote: On 2008-03-31, Jakob Petsovits [EMAIL PROTECTED] wrote: try to work with those other developers so that the solution doesn't only satisfy the needs of one single group but the needs of both. They don't listen. They don't have to listen.

Re: API for binding and unbinding a key combo?

2008-03-31 Thread Tuomo Valkonen
On 2008-03-31, Jakob Petsovits [EMAIL PROTECTED] wrote: there's only one possible choice to keep your sanity, and that is not to get involved with them at all. That's not possible, because their software fucks with yours, and you have to deal with people who try to use your software with

Re: API for binding and unbinding a key combo?

2008-03-31 Thread Richard Hughes
On Mon, 2008-03-31 at 12:24 +, Tuomo Valkonen wrote: Not everyone is a paid developer, you know (whose main interest is to design complex systems to increase their power and keep their jobs!). Can we keep the paranoia down to a reasonable level please? Richard.

Re: API for binding and unbinding a key combo?

2008-03-30 Thread Justin Clift
Thiago Macieira wrote: snip This API is accessible via D-Bus. If wanted, we could work on making it an fd.o spec. Hi all, To add further impetus to this, take a look at the following for an example of just what a nightmare NOT having a spec/standard for this is:

Re: API for binding and unbinding a key combo?

2008-03-30 Thread Tuomo Valkonen
On 2008-03-30, Justin Clift [EMAIL PROTECTED] wrote: http://gentoo-wiki.com/TIP_Make_a_Screenshot_with_PrintScreen_Key That stuff is for _excecuting_ a program, and listed is 'xbindkeys' independent of any WM, depending on just that program being running, just like the previous links require

Re: API for binding and unbinding a key combo?

2008-03-30 Thread Justin Clift
Tuomo Valkonen wrote: On 2008-03-30, Justin Clift [EMAIL PROTECTED] wrote: http://gentoo-wiki.com/TIP_Make_a_Screenshot_with_PrintScreen_Key That stuff is for _excecuting_ a program, and listed is 'xbindkeys' independent of any WM, depending on just that program being running, just like

Re: API for binding and unbinding a key combo?

2008-03-30 Thread Thiago Macieira
Tuomo Valkonen wrote: Since your app is already running, you can just XGrabKey, assuming nothing else uses the key already. And that's exactly the problem: how do you find out if anyone else is using it? And how do you resolve the conflict in that case? --   Thiago Macieira  -  thiago (AT)

Re: API for binding and unbinding a key combo?

2008-03-30 Thread Tuomo Valkonen
On 2008-03-30, Thiago Macieira [EMAIL PROTECTED] wrote: Tuomo Valkonen wrote: Since your app is already running, you can just XGrabKey, assuming nothing else uses the key already. And that's exactly the problem: how do you find out if anyone else is=20 using it? And how do you resolve the

Re: API for binding and unbinding a key combo?

2008-03-30 Thread Thiago Macieira
Tuomo Valkonen wrote: Just complain, and let the user handle the issue. In general, that doesn't help because you don't know what the other application is. --   Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org     PGP/GPG: 0x6EF45358; fingerprint:     E067 918B B660 DBD1

Re: API for binding and unbinding a key combo?

2008-03-30 Thread Tuomo Valkonen
On 2008-03-30, Thiago Macieira [EMAIL PROTECTED] wrote: Tuomo Valkonen wrote: Just complain, and let the user handle the issue. In general, that doesn't help because you don't know what the other=20 application is. And how often do you have overlapping grab attempts? By programs that are not

Re: API for binding and unbinding a key combo?

2008-03-27 Thread Lubos Lunak
On Thursday 27 of March 2008, Justin Clift wrote: Hi all, I'm looking for a works across all window managers way of setting a Control-Printscreen key binding in my (Glib/GTK based) application. ... There doesn't seem to be a standardised way of doing this, or do I need to be looking at this

Re: API for binding and unbinding a key combo?

2008-03-27 Thread Tuomo Valkonen
On 2008-03-27, Lubos Lunak [EMAIL PROTECTED] wrote: XGrabKey() ? Nah, surely the WM should provide a highly specific but complex approach to register keys, and create a fake window that always has the focus, then XSendEventing things to applications, while also maintaining fake focus state.

Re: API for binding and unbinding a key combo?

2008-03-27 Thread Stanislav Brabec
Tuomo Valkonen wrote: On 2008-03-27, Lubos Lunak [EMAIL PROTECTED] wrote: XGrabKey() ? Nah, surely the WM should provide a highly specific but complex approach to register keys, and create a fake window that always has the focus, then XSendEventing things to applications, while also

Re: API for binding and unbinding a key combo?

2008-03-27 Thread Tuomo Valkonen
On 2008-03-27 12:47 +0100, Stanislav Brabec wrote: Application does not need to call XGrabKey() to get events. I was referring to the brain damage known as XEmbed, in case you didn't notice. When XGrabKey would do the job (you can even grab AnyKey, if you want to process everything in the

Re: API for binding and unbinding a key combo?

2008-03-27 Thread Matthias Clasen
On Thu, 2008-03-27 at 14:47 +0200, Tuomo Valkonen wrote: On 2008-03-27 12:47 +0100, Stanislav Brabec wrote: Application does not need to call XGrabKey() to get events. I was referring to the brain damage known as XEmbed, in case you didn't notice. If you can't discuss anything in a

Re: API for binding and unbinding a key combo?

2008-03-27 Thread Tuomo Valkonen
On 2008-03-27, Matthias Clasen [EMAIL PROTECTED] wrote: I was referring to the brain damage known as XEmbed, in case you didn't notice. If you can't discuss anything in a civilized tone, why don't you just shut up ? We have a phrase oma lehmä ojassa, which directly translates as own cow in

Re: API for binding and unbinding a key combo?

2008-03-27 Thread Justin Clift
Dudes! Cut it out. Not cool. Regards and best wishes, Justin Clift -- Salasaga - Open Source eLearning IDE http://www.salasaga.org ___ xdg mailing list xdg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xdg

Re: API for binding and unbinding a key combo?

2008-03-27 Thread Pat Suwalski
Justin Clift wrote: I'll have to get a proper understanding of XGrabKey now, and then ask back if (er... when?) I have probs. Heh. :) I'm attaching a few lines of sample code with XGrabKey, as I was playing with this a couple of weeks ago. The code is rather incomplete, and certainly

Re: API for binding and unbinding a key combo?

2008-03-27 Thread Thiago Macieira
Bastien Nocera wrote: On Thu, 2008-03-27 at 15:19 +1100, Justin Clift wrote: Hi all, I'm looking for a works across all window managers way of setting a Control-Printscreen key binding in my (Glib/GTK based) application. Any suggestions? This is how to do it for GNOME:

Re: API for binding and unbinding a key combo?

2008-03-27 Thread Justin Clift
Thiago Macieira wrote: snip This API is accessible via D-Bus. If wanted, we could work on making it an fd.o spec. From an application author's point of view, that would be REALLY beneficial in a bigger picture sense. It will lead into my app being able to run with good workflow, regardless

API for binding and unbinding a key combo?

2008-03-26 Thread Justin Clift
Hi all, I'm looking for a works across all window managers way of setting a Control-Printscreen key binding in my (Glib/GTK based) application. Any suggestions? As background info, one part of my application (already) provides a specialised screen capturing utility, and binds to the