compilation fix for GTK2 < 2.4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
66d8fe7712
commit
a650b927da
@ -127,11 +127,12 @@ bool wxButton::Create( wxWindow *parent, wxWindowID id, const wxString &label,
|
||||
else if (HasFlag(wxBU_BOTTOM))
|
||||
y_alignment = 1.0;
|
||||
|
||||
#ifdef __WXGTK20__
|
||||
#if GTK_CHECK_VERSION(2,4,0)
|
||||
gtk_button_set_alignment(GTK_BUTTON(m_widget), x_alignment, y_alignment);
|
||||
#else
|
||||
gtk_misc_set_alignment (GTK_MISC (BUTTON_CHILD (m_widget)),
|
||||
x_alignment, y_alignment);
|
||||
if (GTK_IS_MISC(BUTTON_CHILD(m_widget)))
|
||||
gtk_misc_set_alignment (GTK_MISC (BUTTON_CHILD (m_widget)),
|
||||
x_alignment, y_alignment);
|
||||
#endif
|
||||
|
||||
if (!label.empty())
|
||||
|
@ -127,11 +127,12 @@ bool wxButton::Create( wxWindow *parent, wxWindowID id, const wxString &label,
|
||||
else if (HasFlag(wxBU_BOTTOM))
|
||||
y_alignment = 1.0;
|
||||
|
||||
#ifdef __WXGTK20__
|
||||
#if GTK_CHECK_VERSION(2,4,0)
|
||||
gtk_button_set_alignment(GTK_BUTTON(m_widget), x_alignment, y_alignment);
|
||||
#else
|
||||
gtk_misc_set_alignment (GTK_MISC (BUTTON_CHILD (m_widget)),
|
||||
x_alignment, y_alignment);
|
||||
if (GTK_IS_MISC(BUTTON_CHILD(m_widget)))
|
||||
gtk_misc_set_alignment (GTK_MISC (BUTTON_CHILD (m_widget)),
|
||||
x_alignment, y_alignment);
|
||||
#endif
|
||||
|
||||
if (!label.empty())
|
||||
|
Loading…
Reference in New Issue
Block a user