From: Soeren Apel Date: Sun, 3 Apr 2016 18:37:53 +0000 (+0200) Subject: View: Provide a clear setup path for the initial v_offset value X-Git-Tag: pulseview-0.4.0~322 X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=925763b09cd26608cf4b38ce7b44800948a0e5aa;hp=925763b09cd26608cf4b38ce7b44800948a0e5aa;p=pulseview.git View: Provide a clear setup path for the initial v_offset value - View::update_scroll(): The range for the vertical scrollbar is only updated if there are traces in the view. - View::set_scroll_default(): This new function adjusts the vertical offset of the view so that all traces are visible. Needs to be executed once after a new device was selected. - View::signals_changed(): We want to be able to clear stale items in-between devices, so we no longer want to simply return when no device is selected. This means we need to handle a missing device more gracefully. Also, we now reset the vertical scroll bar when no device is selected and call set_scroll_default() when needed. ---