Re: set_default_response(..) on an OK button in a Gtk::Dialog does not work
- From: Emil Nowak <emiml wp pl>
- To: gtkmm-list gnome org
- Subject: Re: set_default_response(..) on an OK button in a Gtk::Dialog does not work
- Date: Wed, 3 Oct 2007 13:26:07 +0200
On 27-09-2007, at 13:58:20 Christopher Lang wrote:
>
> Hi,
>
> I have a simple derived Gtk::Dialog that consists of an Image, a label and
> an entry line. It has a Cancel and an OK button. The entry line allows entry
> of some code.
>
> I would like the OK button activated when the RETURN key is pressed (or of
> course when one uses the mouse to prees OK).
The problem is with Gtk::Entry in Your dialog it grabs RETURN key. You should
use:
sub2_entry1->set_activates_default(true);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]