Re: Radio buttons - howto disable callback on deselect?
- From: Olexiy Avramchenko <aolexiy gmail com>
- To: Daniel Pekelharing <legendstar gmail com>
- Cc: Gtk-App-Devel-List <gtk-app-devel-list gnome org>
- Subject: Re: Radio buttons - howto disable callback on deselect?
- Date: Thu, 19 Jan 2006 16:35:33 +0200
On 1/19/06, Daniel Pekelharing <legendstar gmail com> wrote:
Hi all,
Is there anyway to disable a radio button/menu-item calling the callback
function when it gets "deselected"?
In other words when the user selects an option, only call the callback
for the newly selected radio item and not for the previously selected
one (which is deselected)...
You can use smth like this:
void
callback (GtkToggleButton *toggle)
{
if ( !gtk_toggle_button_get_active (toggle) )
return;
/* some other stuff */
}
Olexiy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]