aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-gns-gtk_zone.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/gnunet-gns-gtk_zone.c')
-rw-r--r--src/gns/gnunet-gns-gtk_zone.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gns/gnunet-gns-gtk_zone.c b/src/gns/gnunet-gns-gtk_zone.c
index 1fcdef24..95e980e8 100644
--- a/src/gns/gnunet-gns-gtk_zone.c
+++ b/src/gns/gnunet-gns-gtk_zone.c
@@ -39,6 +39,7 @@ enum
39 TREE_COL_EXP_TIME_AS_STR, 39 TREE_COL_EXP_TIME_AS_STR,
40 TREE_COL_VAL_AS_STR, 40 TREE_COL_VAL_AS_STR,
41 TREE_COL_VAL_COLOR, 41 TREE_COL_VAL_COLOR,
42 TREE_COL_NAME_IS_EDITABLE,
42}; 43};
43 44
44/** 45/**
@@ -179,6 +180,7 @@ GNUNET_GNS_GTK_name_cellrenderertext_edited_cb (GtkCellRendererText *renderer,
179 gtk_tree_store_insert_with_values (gns->ts, &it,NULL, 0, 180 gtk_tree_store_insert_with_values (gns->ts, &it,NULL, 0,
180 TREE_COL_NAME, _(NEW_RECORD_STR), 181 TREE_COL_NAME, _(NEW_RECORD_STR),
181 TREE_COL_RECORD_TYPE, 1, 182 TREE_COL_RECORD_TYPE, 1,
183 TREE_COL_NAME_IS_EDITABLE, 1,
182 -1); 184 -1);
183#if 0 185#if 0
184 gtk_tree_store_append(gns->ts, &it, NULL); 186 gtk_tree_store_append(gns->ts, &it, NULL);
@@ -266,8 +268,10 @@ void zone_iteration_proc (void *cls,
266*/ 268*/
267 gtk_tree_store_set(zc_ctx->gns->ts, &iter_name, 269 gtk_tree_store_set(zc_ctx->gns->ts, &iter_name,
268 TREE_COL_NAME, name, 270 TREE_COL_NAME, name,
271 TREE_COL_NAME_IS_EDITABLE, 1,
269 -1); 272 -1);
270 273
274
271 /* Append elements for records */ 275 /* Append elements for records */
272 for (c = 0; c < rd_count; c ++) 276 for (c = 0; c < rd_count; c ++)
273 { 277 {
@@ -298,7 +302,8 @@ void zone_iteration_proc (void *cls,
298 302
299 gtk_tree_store_insert_with_values(zc_ctx->gns->ts, &iter_record , &iter_name, 0, 303 gtk_tree_store_insert_with_values(zc_ctx->gns->ts, &iter_record , &iter_name, 0,
300 TREE_COL_NAME, "", 304 TREE_COL_NAME, "",
301 TREE_COL_RECORD_TYPE, 4, 305 TREE_COL_RECORD_TYPE, rd[c].record_type,
306 TREE_COL_EXP_TIME_AS_STR, GNUNET_NAMESTORE_number_to_typename(rd[c].record_type),
302 TREE_COL_IS_PUBLIC, public, 307 TREE_COL_IS_PUBLIC, public,
303 TREE_COL_EXP_TIME_AS_STR, exp, 308 TREE_COL_EXP_TIME_AS_STR, exp,
304 TREE_COL_EXP_TIME_IS_REL, time_is_relative, 309 TREE_COL_EXP_TIME_IS_REL, time_is_relative,
@@ -331,6 +336,7 @@ GNUNET_GNS_GTK_main_treeview_realize_cb (GtkWidget *widget,
331 gtk_tree_store_insert_with_values(gns->ts, &toplevel, NULL, 0, 336 gtk_tree_store_insert_with_values(gns->ts, &toplevel, NULL, 0,
332 TREE_COL_NAME, _(NEW_RECORD_STR), 337 TREE_COL_NAME, _(NEW_RECORD_STR),
333 TREE_COL_RECORD_TYPE, 1, 338 TREE_COL_RECORD_TYPE, 1,
339 TREE_COL_NAME_IS_EDITABLE, 1,
334 -1); 340 -1);
335 341
336 zc_ctx = GNUNET_malloc (sizeof (struct ZoneIteration_Context)); 342 zc_ctx = GNUNET_malloc (sizeof (struct ZoneIteration_Context));