Re: [gtkmm] Signal propagation
- From: Roger Leigh <roger whinlatter uklinux net>
- To: gtkmm-list gnome org
- Subject: Re: [gtkmm] Signal propagation
- Date: Wed, 24 Sep 2003 00:07:17 +0100
Roger Leigh <roger whinlatter uklinux net> writes:
> In a class I have derived from Gtk::Dialog, I'd like to verify the
> dialog's user input is valid, and require re-entry if it's invalid.
>
> I've done this, overriding Gtk::Dialog::on_response():
>
> void
> staff_details::on_response(int response_id)
> {
[...]
> }
>
> However, run() always returns, whether or not I call the subclassed
> on_response, and segfaults if I call signal_response().emission_stop.
> How should I prevent the "response" signal from closing the dialog?
I've solved the problem by overiding Gtk::Dialog::run in my derived
class. This calls Gtk::Dialog::run and calls it again on error.
--
Roger Leigh
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]