Re: gtk_window_set_default does not work (for me)
- From: Christian Neumair <chris gnome-de org>
- To: dmantamp gmail com
- Cc: gtk-app-devel-list gnome org
- Subject: Re: gtk_window_set_default does not work (for me)
- Date: Mon, 12 Sep 2005 20:56:58 +0200
Am Montag, den 12.09.2005, 18:11 +0530 schrieb Deekshit Mantampady:
Hi all,
I have a window where I want to make the OK button to repond to
enter keys. I used
gtk_window_set_default(window, okbtn); I also set GTK_CAN_DEFAULT flag
before using that. But pressing the entre key does not work.
You should use gtk_dialog_set_default_response and, if the dialog
contains an entry, gtk_entry_set_activates_default.
--
Christian Neumair <chris gnome-de org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]