On 1/19/06, Daniel Pekelharing <[EMAIL PROTECTED]> 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
_______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list