diff options
Diffstat (limited to 'src/setup/gnunet-setup-gns.c')
-rw-r--r-- | src/setup/gnunet-setup-gns.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/setup/gnunet-setup-gns.c b/src/setup/gnunet-setup-gns.c index 4cea2bd9..7bc93bac 100644 --- a/src/setup/gnunet-setup-gns.c +++ b/src/setup/gnunet-setup-gns.c | |||
@@ -811,7 +811,7 @@ GNUNET_setup_gns_type_cellrenderercombo_edited_cb (GtkCellRendererCombo *combo, | |||
811 | is_valid = GNUNET_YES; | 811 | is_valid = GNUNET_YES; |
812 | GNUNET_free_non_null (data); | 812 | GNUNET_free_non_null (data); |
813 | } | 813 | } |
814 | if (not_dummy_row) | 814 | if (not_dummy_row == TRUE) |
815 | { | 815 | { |
816 | /* Updating an existing record */ | 816 | /* Updating an existing record */ |
817 | gtk_tree_store_set(ts, &it, | 817 | gtk_tree_store_set(ts, &it, |
@@ -1026,7 +1026,7 @@ GNUNET_setup_gns_name_cellrenderertext_edited_cb (GtkCellRendererText *renderer, | |||
1026 | gtk_tree_model_get(tm, &it, GNS_TREESTORE_COL_NOT_DUMMY_ROW, ¬_dummy, -1); | 1026 | gtk_tree_model_get(tm, &it, GNS_TREESTORE_COL_NOT_DUMMY_ROW, ¬_dummy, -1); |
1027 | gtk_tree_model_get(tm, &it, GNS_TREESTORE_COL_NAME, &name, -1); | 1027 | gtk_tree_model_get(tm, &it, GNS_TREESTORE_COL_NAME, &name, -1); |
1028 | 1028 | ||
1029 | if (not_dummy) | 1029 | if (not_dummy == FALSE) |
1030 | { | 1030 | { |
1031 | /* update name */ | 1031 | /* update name */ |
1032 | gtk_tree_store_set (ts, &it, | 1032 | gtk_tree_store_set (ts, &it, |
@@ -1034,19 +1034,21 @@ GNUNET_setup_gns_name_cellrenderertext_edited_cb (GtkCellRendererText *renderer, | |||
1034 | GNS_TREESTORE_COL_NAME_IS_VISIBLE, TRUE, | 1034 | GNS_TREESTORE_COL_NAME_IS_VISIBLE, TRUE, |
1035 | GNS_TREESTORE_COL_RECORD_TYPE, 0, | 1035 | GNS_TREESTORE_COL_RECORD_TYPE, 0, |
1036 | GNS_TREESTORE_COL_RECORD_TYPE_AS_STR, _(NEW_RECORD_STR), | 1036 | GNS_TREESTORE_COL_RECORD_TYPE_AS_STR, _(NEW_RECORD_STR), |
1037 | GNS_TREESTORE_COL_NOT_DUMMY_ROW, TRUE, | 1037 | GNS_TREESTORE_COL_NOT_DUMMY_ROW, FALSE, |
1038 | GNS_TREESTORE_COL_IS_RECORD_ROW, TRUE, | 1038 | GNS_TREESTORE_COL_IS_RECORD_ROW, TRUE, |
1039 | -1); | 1039 | -1); |
1040 | check_name_validity_and_commit (gtk_tree_model_get_string_from_iter(tm, &it), name); | 1040 | check_name_validity_and_commit (gtk_tree_model_get_string_from_iter(tm, &it), name); |
1041 | 1041 | if (0 == strcmp (name, _(NEW_NAME_STR))) | |
1042 | /* add a new dummy line */ | 1042 | { |
1043 | gtk_tree_store_insert_with_values (ts, &it,NULL, 0, | 1043 | /* add a new dummy line */ |
1044 | GNS_TREESTORE_COL_NAME, _(NEW_NAME_STR), | 1044 | gtk_tree_store_insert_with_values (ts, &it,NULL, 0, |
1045 | GNS_TREESTORE_COL_NAME_IS_VISIBLE, TRUE, | 1045 | GNS_TREESTORE_COL_NAME, _(NEW_NAME_STR), |
1046 | GNS_TREESTORE_COL_RECORD_TYPE, GNUNET_DNSPARSER_TYPE_A, | 1046 | GNS_TREESTORE_COL_NAME_IS_VISIBLE, TRUE, |
1047 | GNS_TREESTORE_COL_NOT_DUMMY_ROW, FALSE, | 1047 | GNS_TREESTORE_COL_RECORD_TYPE, GNUNET_DNSPARSER_TYPE_A, |
1048 | GNS_TREESTORE_COL_IS_RECORD_ROW, FALSE, | 1048 | GNS_TREESTORE_COL_NOT_DUMMY_ROW, FALSE, |
1049 | -1); | 1049 | GNS_TREESTORE_COL_IS_RECORD_ROW, FALSE, |
1050 | -1); | ||
1051 | } | ||
1050 | } | 1052 | } |
1051 | else | 1053 | else |
1052 | { | 1054 | { |