- m_targetWindow->ScrollWindow( (m_xScrollPosition - m_hAdjust->value) * m_xScrollPixelsPerLine, 0 );
- m_xScrollPosition = (int)m_hAdjust->value;
+ if (m_hAdjust->value < 0.0)
+ m_hAdjust->value = 0.0;
+
+ if (GetChildren().GetCount() == 0)
+ m_xScrollPosition = (int)m_hAdjust->value; // This is enough without child windows
+ else
+ gtk_signal_emit_by_name( GTK_OBJECT(m_hAdjust), "value_changed" ); // Actually scroll window