git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58326
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
// Get default border
wxBorder border = GetBorder(style);
{
// Get default border
wxBorder border = GetBorder(style);
style &= ~wxBORDER_MASK;
style |= border;
style &= ~wxBORDER_MASK;
style |= border;
+ // We should accept the native look
+#if 0
+ GtkScrolledWindowClass *scroll_class = GTK_SCROLLED_WINDOW_CLASS( GTK_OBJECT_GET_CLASS(m_widget) );
+ scroll_class->scrollbar_spacing = 0;
+#endif
+
m_wxwindow = wxPizza::New(m_windowStyle);
#ifndef __WXUNIVERSAL__
m_wxwindow = wxPizza::New(m_windowStyle);
#ifndef __WXUNIVERSAL__
GtkScrolledWindow *scrolledWindow = GTK_SCROLLED_WINDOW(m_widget);
GtkScrolledWindow *scrolledWindow = GTK_SCROLLED_WINDOW(m_widget);
- // We should accept the native look
-#if 0
- GtkScrolledWindowClass *scroll_class = GTK_SCROLLED_WINDOW_CLASS( GTK_OBJECT_GET_CLASS(m_widget) );
- scroll_class->scrollbar_spacing = 0;
-#endif
-
// There is a conflict with default bindings at GTK+
// level between scrolled windows and notebooks both of which want to use
// Ctrl-PageUp/Down: scrolled windows for scrolling in the horizontal
// There is a conflict with default bindings at GTK+
// level between scrolled windows and notebooks both of which want to use
// Ctrl-PageUp/Down: scrolled windows for scrolling in the horizontal
+ GtkScrolledWindowClass *scroll_class =
+ GTK_SCROLLED_WINDOW_CLASS( GTK_OBJECT_GET_CLASS(m_widget) );
+
GtkRequisition req;
gtk_widget_size_request(GTK_WIDGET(range), &req);
if (i == ScrollDir_Horz)
GtkRequisition req;
gtk_widget_size_request(GTK_WIDGET(range), &req);
if (i == ScrollDir_Horz)
+ h -= req.height + scroll_class->scrollbar_spacing;
+ w -= req.width + scroll_class->scrollbar_spacing;