update
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 3 Jun 2006 14:07:17 +0000 (14:07 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 3 Jun 2006 14:07:17 +0000 (14:07 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1886 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c

index 70e6cb7dcbe55e694eabadab9769968b93a1d4b9..1dc237d2aa35056b276dd8a8f0e254fafbf4163f 100644 (file)
@@ -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);
 
This page took 0.025224 seconds and 4 git commands to generate.