Re: #73385 - gtk_label_new_with_mnemonic() works wrong with '\n'



Vitaly Tishkov <tvv sparc spb su> writes:

> Hi,
> 
> The bug #73385 was closed as not a bug. I understand now that 1000000 may be
> used but why gtk_label_get_mnemonic_keyval() returns this value? Why not
> GDK_Return (0xFF0D) (or GDK_Linefeed (0xFF0A))?
> 
> Test case.
> ---------
> #include <gtk/gtk.h>
> 
> int
> main (int argc, char** argv)
> {
> 
> GtkWidget* label;
> 
> gtk_init (&argc, &argv);
> 
> label = gtk_label_new_with_mnemonic ("qwe_\nrty");
> printf ("mnemonic keyval = %x\n", gtk_label_get_mnemonic_keyval (GTK_LABEL
> (label)));
> 
> }
> 
> Output:
> -------
> mnemonic keyval = 100000a

Basically, my feeling that this isn't a _sensible_ thing to do,
even if it is a valid thing to do, so as long as it returns a valid
keysysm, I'm not going to worry about which keysym it returns.

Regards,
                                        Owen
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]