Fixed amounts
authorEnrico Zini <enrico@enricozini.org>
Mon, 17 Aug 2009 19:12:23 +0000 (20:12 +0100)
committerEnrico Zini <enrico@enricozini.org>
Mon, 17 Aug 2009 19:12:23 +0000 (20:12 +0100)
src/app_main.vala

index f8346e47b89bde630698dd13d399f27ee775da78..478a2ebb0a7d489c2ec50958403582f21ad5cbb4 100644 (file)
@@ -333,7 +333,7 @@ public class AddRelativeDeadline : Applet
         if (id == dl_hour_tweak)
             dl_time += amount * 60;
         else if (id == dl_min_tweak)
-            dl_time += amount * 60;
+            dl_time += amount;
         if (dl_time < 0)
             dl_time = old;
         update();
@@ -341,7 +341,7 @@ public class AddRelativeDeadline : Applet
 
     protected void on_submit(Gtk.Button b)
     {
-        zavai.clock.clock.schedule(new zavai.clock.Alarm(time_t() + dl_time, dl_label.text));
+        zavai.clock.clock.schedule(new zavai.clock.Alarm(time_t() + dl_time * 60, dl_label.text));
         back();
     }