if (menu)
{
GtkAllocation alloc;
- gtk_widget_set_allocation(GTK_WIDGET(button), &alloc);
+ gtk_widget_get_allocation(GTK_WIDGET(button), &alloc);
int x = alloc.x;
int y = alloc.y;
if (toolbar->HasFlag(wxTB_LEFT | wxTB_RIGHT))
break;
case wxITEM_RADIO:
radioGroup = GetRadioGroup(pos);
- if (radioGroup)
+ if (!radioGroup)
{
// this is the first button in the radio button group,
// it will be toggled automatically by GTK so bring the