On Thu, 2006-01-19 at 16:19 +0200, Daniel Pekelharing 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)...
> 
> Thanks in advance!

Never mind..
I've solved the problem simply by adding:

if GTK_IS_RADIO_MENU_ITEM(widget) {
        if (!gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) 
return;
}

to the top of my callback function...

perhaps not the best way to do it, but it works. ;-)

-- 
Daniel Pekelharing
<[EMAIL PROTECTED]>

_______________________________________________
gtk-app-devel-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to