wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, button->GetId());
event.SetEventObject(button);
- button->GetEventHandler()->ProcessEvent(event);
+ button->HandleWindowEvent(event);
}
}
if (!button->m_hasVMT) return;
if (g_blockEventsOnDrag) return;
- button->HasFocus();
+ button->GTKSetHasFocus();
}
}
if (!button->m_hasVMT) return;
if (g_blockEventsOnDrag) return;
- button->NotFocus();
+ button->GTKSetNotFocus();
}
}
if (!the_one.Ok()) the_one = m_bmpNormal;
if (!the_one.Ok()) return;
- GdkBitmap *mask = (GdkBitmap *) NULL;
+ GdkBitmap *mask = NULL;
if (the_one.GetMask()) mask = the_one.GetMask()->GetBitmap();
GtkWidget *child = BUTTON_CHILD(m_widget);
return true;
}
-void wxBitmapButton::HasFocus()
+void wxBitmapButton::GTKSetHasFocus()
{
m_hasFocus = true;
OnSetBitmap();
}
-void wxBitmapButton::NotFocus()
+void wxBitmapButton::GTKSetNotFocus()
{
m_hasFocus = false;
OnSetBitmap();