aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-07-02 17:10:02 +0000
committerChristian Grothoff <christian@grothoff.org>2012-07-02 17:10:02 +0000
commitb13b08fc54759bf7d0948c69b0e767cbc00b6e39 (patch)
tree81270a573a3a8db0d39cb455ba69bf65cf434902
parent7f1e4974fd5d5467762dabd33eb1fd27d6073fd1 (diff)
downloadgnunet-gtk-b13b08fc54759bf7d0948c69b0e767cbc00b6e39.tar.gz
gnunet-gtk-b13b08fc54759bf7d0948c69b0e767cbc00b6e39.zip
-try absolute parser before relative parser
-rw-r--r--src/setup/gnunet-setup-gns.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/setup/gnunet-setup-gns.c b/src/setup/gnunet-setup-gns.c
index d9e04afb..09849e14 100644
--- a/src/setup/gnunet-setup-gns.c
+++ b/src/setup/gnunet-setup-gns.c
@@ -905,26 +905,26 @@ GNUNET_setup_gns_expiration_cellrenderertext_edited_cb (GtkCellRendererText *ren
905 new_text); 905 new_text);
906 gtk_tree_model_get_iter_from_string (tm, &it, path); 906 gtk_tree_model_get_iter_from_string (tm, &it, path);
907 if (GNUNET_OK == 907 if (GNUNET_OK ==
908 GNUNET_STRINGS_fancy_time_to_relative (new_text, 908 GNUNET_STRINGS_fancy_time_to_absolute (new_text,
909 &reltime)) 909 &abstime))
910 { 910 {
911 gtk_tree_store_set (ts, &it, 911 gtk_tree_store_set (ts, &it,
912 GNS_TREESTORE_COL_EXP_TIME_AS_STR, new_text, 912 GNS_TREESTORE_COL_EXP_TIME_AS_STR, new_text,
913 GNS_TREESTORE_COL_EXP_TIME, reltime.rel_value, 913 GNS_TREESTORE_COL_EXP_TIME, abstime.abs_value,
914 GNS_TREESTORE_COL_EXP_TIME_IS_REL, TRUE, 914 GNS_TREESTORE_COL_EXP_TIME_IS_REL, FALSE,
915 GNS_TREESTORE_COL_EXP_TIME_COLOR, NULL, 915 GNS_TREESTORE_COL_EXP_TIME_COLOR, NULL,
916 -1); 916 -1);
917 check_name_validity_and_commit (path, NULL); 917 check_name_validity_and_commit (path, NULL);
918 return; 918 return;
919 } 919 }
920 if (GNUNET_OK == 920 if (GNUNET_OK ==
921 GNUNET_STRINGS_fancy_time_to_absolute (new_text, 921 GNUNET_STRINGS_fancy_time_to_relative (new_text,
922 &abstime)) 922 &reltime))
923 { 923 {
924 gtk_tree_store_set (ts, &it, 924 gtk_tree_store_set (ts, &it,
925 GNS_TREESTORE_COL_EXP_TIME_AS_STR, new_text, 925 GNS_TREESTORE_COL_EXP_TIME_AS_STR, new_text,
926 GNS_TREESTORE_COL_EXP_TIME, abstime.abs_value, 926 GNS_TREESTORE_COL_EXP_TIME, reltime.rel_value,
927 GNS_TREESTORE_COL_EXP_TIME_IS_REL, FALSE, 927 GNS_TREESTORE_COL_EXP_TIME_IS_REL, TRUE,
928 GNS_TREESTORE_COL_EXP_TIME_COLOR, NULL, 928 GNS_TREESTORE_COL_EXP_TIME_COLOR, NULL,
929 -1); 929 -1);
930 check_name_validity_and_commit (path, NULL); 930 check_name_validity_and_commit (path, NULL);