Minimum is now GTK+ 2.4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -127,18 +127,7 @@ bool wxButton::Create(wxWindow *parent,
|
|||||||
else if (HasFlag(wxBU_BOTTOM))
|
else if (HasFlag(wxBU_BOTTOM))
|
||||||
y_alignment = 1.0;
|
y_alignment = 1.0;
|
||||||
|
|
||||||
#ifdef __WXGTK24__
|
|
||||||
if (!gtk_check_version(2,4,0))
|
|
||||||
{
|
|
||||||
gtk_button_set_alignment(GTK_BUTTON(m_widget), x_alignment, y_alignment);
|
gtk_button_set_alignment(GTK_BUTTON(m_widget), x_alignment, y_alignment);
|
||||||
}
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (GTK_IS_MISC(GTK_BIN(m_widget)->child))
|
|
||||||
gtk_misc_set_alignment(GTK_MISC(GTK_BIN(m_widget)->child),
|
|
||||||
x_alignment, y_alignment);
|
|
||||||
}
|
|
||||||
|
|
||||||
SetLabel(label);
|
SetLabel(label);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user