Re: Signal emitted when changing a combo selection?
- From: themac <themac club-internet fr>
- To: gtk-list gnome org, markus gerwinski de
- Subject: Re: Signal emitted when changing a combo selection?
- Date: 15 May 2003 01:15:59 +0200
Hi,
Just check if your text entry is not empty
ex:
entry = GTK_ENTRY(GTK_COMBO(dwco__combo)->entry);
text = g_strdup_printf("%s", gtk_entry_get_text(entry));
if ( g_strcasecmp(text,"") )
{
... you 've got text
}
Le lun 05/05/2003 à 11:07, Markus Gerwinski a écrit :
Hi folks,
I've got a problem with Gtkmm that seems to lead back to GTK. (See forwarded
message below.) Maybe someone can help me here?
Thanks in advance,
Markus
----- Forwarded message from Markus Gerwinski <markus gerwinski de> -----
From: Markus Gerwinski <markus gerwinski de>
To: Paul Davis <paul linuxaudiosystems com>
Cc: gtkmm-list gnome org
Subject: Re: [gtkmm] Signal emitted when changing a combo selection?
Date: Mon, 5 May 2003 10:27:31 +0200
After some tests, I found out the combo->get_list().signal_unmap() seems to be
never called... which is a pity, since it could possibly help me solve another
problem: 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?
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
----- End forwarded message -----
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]