X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2e8613b74113418749863342f3495a9df733eece..5f265f87d98c2577ce85e9c48f650edb0246bcda:/src/gtk1/button.cpp?ds=sidebyside diff --git a/src/gtk1/button.cpp b/src/gtk1/button.cpp index 764cbde38f..fae04c1372 100644 --- a/src/gtk1/button.cpp +++ b/src/gtk1/button.cpp @@ -120,8 +120,8 @@ bool wxButton::Create( wxWindow *parent, wxWindowID id, const wxString &label, y_alignment = 1.0; gtk_misc_set_alignment (GTK_MISC (BUTTON_CHILD (m_widget)), - x_alignment, y_alignment); - + x_alignment, y_alignment); + SetLabel( label ); if (style & wxNO_BORDER) @@ -188,6 +188,15 @@ bool wxButton::Enable( bool enable ) return TRUE; } +bool wxButton::IsOwnGtkWindow( GdkWindow *window ) +{ +#ifdef __WXGTK20__ + return GTK_BUTTON(m_widget)->event_window; +#else + return (window == m_widget->window); +#endif +} + void wxButton::ApplyWidgetStyle() { SetWidgetStyle();