Re: Understanding accelerators.

2014-10-10 Thread Oscar Lazzarino
On 09/10/2014 20:53, Lucas Levrel wrote: Le 7 octobre 2014, Oscar Lazzarino a écrit : Let's say I have a window with just one button quit. I'd like to handle the controloq key event to quit the application. Here's how I set Return as accel in my GTK 2 app:

Re: Understanding accelerators.

2014-10-09 Thread Lucas Levrel
Le 7 octobre 2014, Oscar Lazzarino a écrit : Let's say I have a window with just one button quit. I'd like to handle the controloq key event to quit the application. Here's how I set Return as accel in my GTK 2 app: gtkwin=gtk_window_new(GTK_WINDOW_TOPLEVEL);

Understanding accelerators.

2014-10-07 Thread Oscar Lazzarino
Hi, I'm trying to understand the difference between accelerators and the “key-press-event” signal. Let's say I have a window with just one button quit. I'd like to handle the controloq key event to quit the application. I now I can connect to the top window key-press-event, but - just to

Re: Understanding accelerators.

2014-10-07 Thread Michael Cronenworth
On 10/07/2014 04:45 AM, Oscar Lazzarino wrote: I'm trying to understand the difference between accelerators and the “key-press-event” signal. Let's say I have a window with just one button quit. I'd like to handle the controloq key event to quit the application. I now I can connect to the top

Re: Understanding accelerators.

2014-10-07 Thread Gergely Polonkai
Mnemonics are discouraged by the HIG, and AFAIK they are not displayed by recent GTK versions. From the user's perspective, I think there is no difference. However, if you are using GApplication/GtkApplication, it is easier to register accels, and you can even make them easily customizable for

Re: Understanding accelerators.

2014-10-07 Thread Michael Cronenworth
On 10/07/2014 09:18 AM, Gergely Polonkai wrote: Mnemonics are discouraged by the HIG, and AFAIK they are not displayed by recent GTK versions. From the user's perspective, I think there is no difference. However, if you are using GApplication/GtkApplication, it is easier to register accels,

Re: Understanding accelerators.

2014-10-07 Thread Gergely Polonkai
This is becoming offtopic, but… this is strange, last time I saw a discussion about them, they were considered out of date or something and many was upset that they are gone (even if only at theme level). Sorry then, it's my mistake. On 7 Oct 2014 16:31, Michael Cronenworth m...@cchtml.com wrote: