Re: How does the dialog's default button respond "enter" key



I think you should connect the "enter" signal to the window instead of
the button.
I think what you mean is, you wanna destroy the dialog whenever the
user press "enter" key, right?

On Wed, Oct 7, 2009 at 10:35 AM, wjh <jh_wang2004 163 com> wrote:
Hi all:
       I have a question, in Gtk+ dialog,there is a GtkListStore
Widget, when user select the list's entry and then press the enter key,
I want programe make the dialog's default "OK" button responds the
"entre" key signal and destory the dialog immediately. But the list
widget intercept the signal, default button does not! how can i?

thanks!


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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