From: compudj Date: Sat, 3 Jun 2006 14:07:17 +0000 (+0000) Subject: update X-Git-Tag: v0.12.20~1603 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=074ed5c1680c6533beb9e1b346f96c1fef777b93;p=lttv.git update git-svn-id: http://ltt.polymtl.ca/svn@1886 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 70e6cb7d..1dc237d2 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c @@ -3443,9 +3443,15 @@ void time_change_manager (Tab *tab, (double)end_time.tv_nsec); /* width seconds */ - gtk_spin_button_set_range(GTK_SPIN_BUTTON(tab->MEntry7), - (double)0, - (double)upper.tv_sec); + if(time_width.tv_nsec == 0) { + gtk_spin_button_set_range(GTK_SPIN_BUTTON(tab->MEntry7), + (double)1, + (double)upper.tv_sec); + } else { + gtk_spin_button_set_range(GTK_SPIN_BUTTON(tab->MEntry7), + (double)0, + (double)upper.tv_sec); + } gtk_spin_button_set_value(GTK_SPIN_BUTTON(tab->MEntry7), (double)time_width.tv_sec);