aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo/gnunet-peerinfo-gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peerinfo/gnunet-peerinfo-gtk.c')
-rw-r--r--src/peerinfo/gnunet-peerinfo-gtk.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/peerinfo/gnunet-peerinfo-gtk.c b/src/peerinfo/gnunet-peerinfo-gtk.c
index afa27d70..ae7d57f9 100644
--- a/src/peerinfo/gnunet-peerinfo-gtk.c
+++ b/src/peerinfo/gnunet-peerinfo-gtk.c
@@ -100,7 +100,7 @@ peerinfo_processor (void *cls,
100 100
101 GNUNET_CRYPTO_hash_to_enc (&peer->hashPubKey, &enc); 101 GNUNET_CRYPTO_hash_to_enc (&peer->hashPubKey, &enc);
102 npid = (const char *) &enc; 102 npid = (const char *) &enc;
103 ls = GTK_LIST_STORE (get_object ("GNUNET_GTK_peer_info_list_store")); 103 ls = GTK_LIST_STORE (get_object ("GNUNET_PEERINFO_GTK_list_store"));
104 tm = GTK_TREE_MODEL (ls); 104 tm = GTK_TREE_MODEL (ls);
105 found = GNUNET_NO; 105 found = GNUNET_NO;
106 if (TRUE == gtk_tree_model_get_iter_first (tm, &iter)) 106 if (TRUE == gtk_tree_model_get_iter_first (tm, &iter))
@@ -125,9 +125,12 @@ peerinfo_processor (void *cls,
125 } 125 }
126 if (found == GNUNET_NO) 126 if (found == GNUNET_NO)
127 gtk_list_store_append (ls, &iter); 127 gtk_list_store_append (ls, &iter);
128 gtk_list_store_set (ls, &iter, 0, npid, 1, 0 /* number of known addresses */ , 128 gtk_list_store_set (ls, &iter,
129 0, npid,
130 1, 0 /* number of known addresses */ ,
129 2, "" /* country name */ , 131 2, "" /* country name */ ,
130 3, NULL /* country flag */ , 132 3, NULL /* country flag */ ,
133 4, "" /* addresses as strings */,
131 -1); 134 -1);
132} 135}
133 136
@@ -166,7 +169,7 @@ run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
166 169
167 /* setup main window */ 170 /* setup main window */
168 main_window = 171 main_window =
169 GTK_WIDGET (get_object ("GNUNET_GTK_PEERINFO_main_window")); 172 GTK_WIDGET (get_object ("GNUNET_PEERINFO_GTK_main_window"));
170 gtk_window_maximize (GTK_WINDOW (main_window)); 173 gtk_window_maximize (GTK_WINDOW (main_window));
171 GNUNET_GTK_tray_icon_create (GTK_WINDOW (main_window), 174 GNUNET_GTK_tray_icon_create (GTK_WINDOW (main_window),
172 "gnunet-gtk" /* FIXME: different icon? */ , 175 "gnunet-gtk" /* FIXME: different icon? */ ,