diff options
Diffstat (limited to 'src/conversation/gnunet-conversation-gtk_contacts.c')
-rw-r--r-- | src/conversation/gnunet-conversation-gtk_contacts.c | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/src/conversation/gnunet-conversation-gtk_contacts.c b/src/conversation/gnunet-conversation-gtk_contacts.c index e9010c7d..302c28ba 100644 --- a/src/conversation/gnunet-conversation-gtk_contacts.c +++ b/src/conversation/gnunet-conversation-gtk_contacts.c | |||
@@ -172,13 +172,6 @@ display_record (void *cls, | |||
172 | gboolean is_public; | 172 | gboolean is_public; |
173 | char *value; | 173 | char *value; |
174 | 174 | ||
175 | if (NULL == zone_key) | ||
176 | { | ||
177 | /* disconnect, clear (and possibly freeze) view */ | ||
178 | gtk_list_store_clear (contacts_liststore); | ||
179 | gtk_widget_hide (contacts_treeview); | ||
180 | return; | ||
181 | } | ||
182 | do_display = FALSE; | 175 | do_display = FALSE; |
183 | value = NULL; | 176 | value = NULL; |
184 | for (i = 0; i < rd_len; i++) | 177 | for (i = 0; i < rd_len; i++) |
@@ -290,6 +283,20 @@ unfreeze_view (void *cls) | |||
290 | 283 | ||
291 | 284 | ||
292 | /** | 285 | /** |
286 | * Function called once the monitor has disconnected from the | ||
287 | * database. | ||
288 | * | ||
289 | * @param cls closure | ||
290 | */ | ||
291 | static void | ||
292 | freeze_view (void *cls) | ||
293 | { | ||
294 | gtk_list_store_clear (contacts_liststore); | ||
295 | gtk_widget_hide (contacts_treeview); | ||
296 | } | ||
297 | |||
298 | |||
299 | /** | ||
293 | * A different zone was selected in the zone toggle bar. Load the | 300 | * A different zone was selected in the zone toggle bar. Load the |
294 | * appropriate zone. | 301 | * appropriate zone. |
295 | * | 302 | * |
@@ -322,7 +329,10 @@ gnunet_conversation_gtk_contacts_zone_combobox_changed_cb (GtkComboBox *widget, | |||
322 | zone_mon = GNUNET_NAMESTORE_zone_monitor_start (GCG_get_configuration (), | 329 | zone_mon = GNUNET_NAMESTORE_zone_monitor_start (GCG_get_configuration (), |
323 | temp_zone_pkey, | 330 | temp_zone_pkey, |
324 | GNUNET_YES, | 331 | GNUNET_YES, |
332 | &freeze_view, | ||
333 | NULL, | ||
325 | &display_record, | 334 | &display_record, |
335 | NULL, | ||
326 | &unfreeze_view, | 336 | &unfreeze_view, |
327 | NULL); | 337 | NULL); |
328 | } | 338 | } |
@@ -451,4 +461,3 @@ GCG_CONTACTS_shutdown () | |||
451 | } | 461 | } |
452 | 462 | ||
453 | /* end of gnunet-conversation-gtk_contacts.c */ | 463 | /* end of gnunet-conversation-gtk_contacts.c */ |
454 | |||