Re: [gtkmm] Signal emitted when changing a combo selection?
- From: Daniel Sundberg <dss home se>
- To: Murray Cumming Comneon com
- Cc: markus gerwinski de, paul linuxaudiosystems com, gtkmm-list gnome org
- Subject: Re: [gtkmm] Signal emitted when changing a combo selection?
- Date: Mon, 5 May 2003 12:03:04 +0200
On Mon, 5 May 2003 10:33:24 +0200
Murray Cumming Comneon com wrote:
> > From: Markus Gerwinski [mailto:markus gerwinski de]
> > The combo->get_entry().signal_changed() is always
> > emitted twice if
> > changing from a non-empty string to another one.
> >
> > Example: Combo changes from "Mr." to "Ms" using the dropdown
> > list. Then I get
> > two signals:
> >
> > signal_changed: "Mr." -> ""
> > signal_changed: "" -> "Ms."
> >
> > This is a serious problem for me, since it tangles up my
> > `undo' stack, doubles
> > the number of database queries etc.. Is there a proper way to
> > solve this?
>
> I think I remember having to do a check in my signal handler to see whether
> the thing has actually changed, or whether it is empty or something.
>
> That worked for me, but if someone wants to investigate properly they should
> ask about this on gtk-list gnome org
>
I think a new combo widget is one the top priorities (besides a new file selector) in gtk+-2.4. Or at least in some future gtk+ version....:-)
---
Daniel Sundberg
http://sumpan.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]