projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pretend that we support all encodings instead of not supporting any of them under...
[wxWidgets.git]
/
src
/
gtk
/
scrolbar.cpp
diff --git
a/src/gtk/scrolbar.cpp
b/src/gtk/scrolbar.cpp
index edc4f34d719e579a5ad505dd4400523c2b967c9c..f2d26ced1d242ffbbcb5330de356c95abb482fe1 100644
(file)
--- a/
src/gtk/scrolbar.cpp
+++ b/
src/gtk/scrolbar.cpp
@@
-179,12
+179,7
@@
bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
m_parent->DoAddChild( this );
m_parent->DoAddChild( this );
- PostCreation();
- InheritAttributes();
-
- SetBestSize(size);
-
- Show( TRUE );
+ PostCreation(size);
return TRUE;
}
return TRUE;
}
@@
-330,15
+325,16
@@
bool wxScrollBar::IsOwnGtkWindow( GdkWindow *window )
);
}
);
}
-void wxScrollBar::ApplyWidgetStyle()
+wxSize wxScrollBar::DoGetBestSize() const
{
{
- SetWidgetStyle();
- gtk_widget_set_style( m_widget, m_widgetStyle );
+ return wxControl::DoGetBestSize();
}
}
-wxSize wxScrollBar::DoGetBestSize() const
+// static
+wxVisualAttributes
+wxScrollBar::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
{
{
- return
wxControl::DoGetBestSize(
);
+ return
GetDefaultAttributesFromGTKWidget(gtk_vscrollbar_new
);
}
#endif
}
#endif