[Glade-users] How to block some input in GtkEntry field
- From: tadeboro at gmail.com (Tadej Borovšak)
- Subject: [Glade-users] How to block some input in GtkEntry field
- Date: Wed, 25 Aug 2010 22:39:32 +0200
Hi.
Validation should be done prior insertion (so you actually prevent
character from being inserted) like Cristobal said. You can do that by
connecting to GtkEditable::insert-text signal. If the input is
invalid, you simply stop emission of this signal using
g_signal_stop_emission_by_name(), which will cause default handler to
be skipped and text ignored.
Tadej
--
Tadej Borov?ak
tadeboro.blogspot.com
tadeboro at gmail.com
tadej.borovsak at gmail.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]