Updating branch refs/heads/master
         to 979e82ef5e5d0d6a5b516b4d43fb9316f88e8b59 (commit)
       from 42d4a996fd8e2148dc22c38820884847d5bdaaa1 (commit)

commit 979e82ef5e5d0d6a5b516b4d43fb9316f88e8b59
Author: Stephan Arts <[email protected]>
Date:   Fri Sep 2 23:58:43 2011 +0200

    Make the today option clear today

 src/privacy_dialog.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/privacy_dialog.c b/src/privacy_dialog.c
index 5d82f6a..55ccfb9 100644
--- a/src/privacy_dialog.c
+++ b/src/privacy_dialog.c
@@ -419,8 +419,7 @@ cb_rstto_privacy_dialog_combobox_timeframe_changed 
(GtkComboBox *combobox, gpoin
             dialog->priv->time_offset = 14200;
             break;
         case 3:
-            /* TODO: calculate the time from time_now to midnight */
-            dialog->priv->time_offset = 14200;
+            dialog->priv->time_offset = (dialog->priv->time_now % 86400);
             break;
         case 4:
             dialog->priv->time_offset = dialog->priv->time_now;
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to