projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TRUE not true, FALSE not false
[wxWidgets.git]
/
src
/
gtk1
/
button.cpp
diff --git
a/src/gtk1/button.cpp
b/src/gtk1/button.cpp
index 764cbde38f99dba762987daf9939ee7574148116..fae04c137284c4431fd4643f205258b334e1f999 100644
(file)
--- 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)),
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)
SetLabel( label );
if (style & wxNO_BORDER)
@@
-188,6
+188,15
@@
bool wxButton::Enable( bool enable )
return TRUE;
}
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();
void wxButton::ApplyWidgetStyle()
{
SetWidgetStyle();