X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2FmainWin%2Fsrc%2Fgtkcustom.c;h=05f56448281e437fd3c01a094d7e50b09fb1d3b0;hb=716e4367df9c21316d326ee18b703cd0d25ace74;hp=f9b3582678f02e408bb77cbd79fec3c61e590e30;hpb=35d310374287f26a707e149f2f21dd48b6aa9f59;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/mainWin/src/gtkcustom.c b/ltt/branches/poly/lttv/modules/gui/mainWin/src/gtkcustom.c index f9b35826..05f56448 100644 --- a/ltt/branches/poly/lttv/modules/gui/mainWin/src/gtkcustom.c +++ b/ltt/branches/poly/lttv/modules/gui/mainWin/src/gtkcustom.c @@ -107,11 +107,12 @@ void gtk_custom_set_adjust(GtkCustom * custom, gboolean first_time) TimeWindow time_window; TimeInterval *time_span; double tmp, start; - double range = 5; + double range = 0; get_time_window(custom->mw,&time_window); if(first_time){ - time_span = LTTV_TRACESET_CONTEXT(custom->mw->traceset_info->traceset_context)->Time_Span ; + time_span = LTTV_TRACESET_CONTEXT(custom->mw->current_tab->traceset_info-> + traceset_context)->Time_Span ; custom->hadjust->lower = ltt_time_to_double(time_span->startTime) * NANOSECONDS_PER_SECOND; @@ -134,7 +135,7 @@ void gtk_custom_set_adjust(GtkCustom * custom, gboolean first_time) if(custom->hadjust->page_increment >= tmp - range) custom->hadjust->value = custom->hadjust->lower; - if(start + custom->hadjust->page_increment > custom->hadjust->upper - range) + if(start + custom->hadjust->page_increment >= custom->hadjust->upper - range) custom->hadjust->value = start; /* page_size to the whole visible area will take care that the