- tmpValue += time.tv_nsec;
- custom->hAdjust->value = tmpValue;
- custom->hAdjust->step_increment = 1;
- custom->hAdjust->page_increment = 100000000;
- custom->hAdjust->page_size = 100000000;
-
- gtk_range_set_update_policy (GTK_RANGE(custom->hScrollbar), GTK_UPDATE_DISCONTINUOUS);
+ tmpValue += Time_Window.Time_Width.tv_nsec;
+ custom->hAdjust->step_increment = tmpValue / 10;
+ /* Page increment of whole visible area */
+ custom->hAdjust->page_increment = tmpValue;
+ /* page_size to the whole visible area will take care that the
+ * scroll value + the shown area will never be more than what is
+ * in the trace. */
+ custom->hAdjust->page_size = tmpValue;
+
+ gtk_range_set_update_policy (GTK_RANGE(custom->hScrollbar),
+ GTK_UPDATE_DISCONTINUOUS);