From: compudj Date: Sat, 3 Jun 2006 13:56:11 +0000 (+0000) Subject: update X-Git-Tag: v0.12.20~1607 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f34733d7140cf2f366c2ea237d410b915c15fe93;p=lttv.git update git-svn-id: http://ltt.polymtl.ca/svn@1882 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c index e7822f7b..2a4e9f35 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c @@ -3445,26 +3445,26 @@ void time_change_manager (Tab *tab, /* width seconds */ gtk_spin_button_set_range(GTK_SPIN_BUTTON(tab->MEntry7), (double)0, - (double)time_span.time_width.tv_sec); + (double)upper.tv_sec); gtk_spin_button_set_value(GTK_SPIN_BUTTON(tab->MEntry7), (double)time_width.tv_sec); /* width nanoseconds */ - if(time_width.tv_sec == time_span.time_width.tv_sec) { + if(time_width.tv_sec == upper.tv_sec) { if(time_width.tv_sec == 0) { gtk_spin_button_set_range(GTK_SPIN_BUTTON(tab->MEntry8), (double)1, - (double)time_span.time_width.tv_nsec); + (double)upper.tv_nsec); } else { gtk_spin_button_set_range(GTK_SPIN_BUTTON(tab->MEntry8), (double)0, - (double)time_span.time_width.tv_nsec); + (double)upper.tv_nsec); } } else if(time_width.tv_sec == 0) { gtk_spin_button_set_range(GTK_SPIN_BUTTON(tab->MEntry8), 1.0, - (double)time_span.time_width.tv_nsec); + (double)upper.tv_nsec); } else /* anywhere else */ gtk_spin_button_set_range(GTK_SPIN_BUTTON(tab->MEntry8),