aboutsummaryrefslogtreecommitdiff
path: root/src/setup/gnunet-setup-hostlist-editing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup/gnunet-setup-hostlist-editing.c')
-rw-r--r--src/setup/gnunet-setup-hostlist-editing.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/setup/gnunet-setup-hostlist-editing.c b/src/setup/gnunet-setup-hostlist-editing.c
index 981645c2..4c7a6fb3 100644
--- a/src/setup/gnunet-setup-hostlist-editing.c
+++ b/src/setup/gnunet-setup-hostlist-editing.c
@@ -64,11 +64,17 @@ GNUNET_setup_hostlist_url_cellrenderertext_edited_cb (GtkCellRendererText *
64 if (strlen (oldtext) == 0) 64 if (strlen (oldtext) == 0)
65 { 65 {
66 gtk_list_store_insert_before (ls, &iter, &old); 66 gtk_list_store_insert_before (ls, &iter, &old);
67 gtk_list_store_set (ls, &iter, 0, new_text, 1, FALSE, -1); 67 gtk_list_store_set (ls, &iter,
68 GNUNET_GTK_SETUP_HOSTLIST_URL_MC_URL, new_text,
69 GNUNET_GTK_SETUP_HOSTLIST_URL_MC_EDITABLE, FALSE,
70 -1);
68 } 71 }
69 else 72 else
70 { 73 {
71 gtk_list_store_set (ls, &old, 0, new_text, 1, FALSE, -1); 74 gtk_list_store_set (ls, &old,
75 GNUNET_GTK_SETUP_HOSTLIST_URL_MC_URL, new_text,
76 GNUNET_GTK_SETUP_HOSTLIST_URL_MC_EDITABLE, FALSE,
77 -1);
72 } 78 }
73 g_free (oldtext); 79 g_free (oldtext);
74} 80}