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.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/gns/gnunet-gns-gtk_zone.c b/src/gns/gnunet-gns-gtk_zone.c
index a6218623..b7f7c22c 100644
--- a/src/gns/gnunet-gns-gtk_zone.c
+++ b/src/gns/gnunet-gns-gtk_zone.c
@@ -140,6 +140,42 @@ GNUNET_GNS_GTK_main_treeview_popup_menu_cb (GtkWidget *widget,
140 return FALSE; 140 return FALSE;
141} 141}
142 142
143enum
144{
145 COL_FIRST_NAME = 0,
146 COL_LAST_NAME,
147 COL_YEAR_BORN,
148 NUM_COLS
149} ;
150
151static void
152test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
153{
154 struct GNUNET_GNS_Context *gns=cls;
155 GtkBuilder *builder = gns->builder;
156 GtkTreeStore *ts;
157 GtkTreeIter toplevel, child;
158
159 ts = GTK_TREE_STORE (gtk_builder_get_object (builder, "GNUNET_GNS_GTK_treestore"));
160 GNUNET_assert (ts != NULL);
161
162 GNUNET_break (0);
163 /* Append a top level row and leave it empty */
164 gtk_tree_store_append(ts, &toplevel, NULL);
165 /*
166 gtk_tree_store_set(ts, &toplevel,
167 COL_FIRST_NAME, "Maria",
168 COL_LAST_NAME, "Incognito",
169 -1);*/
170}
171
172void
173GNUNET_GNS_GTK_main_treeview_click_cb (GtkTreeViewColumn *treeviewcolumn,
174 gpointer user_data)
175{
176
177 GNUNET_SCHEDULER_add_now (&test, user_data);
178}
143 179
144/** 180/**
145 * The zone treeview was realized. Setup the model. 181 * The zone treeview was realized. Setup the model.