Toggle button in listitem - how to stop event
- From: Lars Clausen <lc statsbiblioteket dk>
- To: gtk-app-devel-list gnome org
- Subject: Toggle button in listitem - how to stop event
- Date: Thu, 06 May 2004 16:08:23 +0200
I have a GtkListItem that contains a GtkToggleButton and a GtkLabel.
I'd like it so that when the user clicks the label, the listitem is
selected, but when the user clicks the button, the button toggles
without the listitem selection changing. Currently, the listitem gets
selected by the button click as well. How can I stop the button click
from falling through without reimplementing button event handling from
For the curious, this is the connectable button in app/layer_dialog.c in
the DIA_0_94_DEVEL branch of Dia CVS, and the selectable button shows
the desired behaviour, but is an awful hack.
] [Thread Prev