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.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/peerinfo/gnunet-peerinfo-gtk.c b/src/peerinfo/gnunet-peerinfo-gtk.c
index a5ae486a..c647eedf 100644
--- a/src/peerinfo/gnunet-peerinfo-gtk.c
+++ b/src/peerinfo/gnunet-peerinfo-gtk.c
@@ -35,6 +35,7 @@
35#include <unique/unique.h> 35#include <unique/unique.h>
36#endif 36#endif
37 37
38#define UPDATE_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10)
38 39
39/** 40/**
40 * Should we show peers that have no connections and 41 * Should we show peers that have no connections and
@@ -394,11 +395,6 @@ static GtkTreeViewColumn *tvc_ats_connectivity;
394static GtkTreeViewColumn *tvc_plugin_connectivity; 395static GtkTreeViewColumn *tvc_plugin_connectivity;
395 396
396/** 397/**
397 * Tree view column for neighbour_state
398 */
399static GtkTreeViewColumn *tvc_neighbour_state;
400
401/**
402 * The main tree view. 398 * The main tree view.
403 */ 399 */
404static GtkTreeView *tv; 400static GtkTreeView *tv;
@@ -423,7 +419,7 @@ static void
423do_update (void *cls) 419do_update (void *cls)
424{ 420{
425 (void) cls; 421 (void) cls;
426 update_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, 422 update_task = GNUNET_SCHEDULER_add_delayed (UPDATE_FREQUENCY,
427 &do_update, 423 &do_update,
428 NULL); 424 NULL);
429 gtk_widget_thaw_child_notify (GTK_WIDGET (tv)); 425 gtk_widget_thaw_child_notify (GTK_WIDGET (tv));
@@ -1457,8 +1453,6 @@ query_tooltip_cb (GtkWidget *widget,
1457 model_column = PEERINFO_MC_PEERINFO_ADDRESS_EXPIRATION; 1453 model_column = PEERINFO_MC_PEERINFO_ADDRESS_EXPIRATION;
1458 else if (tvc_transport_connectivity == column) 1454 else if (tvc_transport_connectivity == column)
1459 model_column = PEERINFO_MC_NEIGHBOUR_CONNECTIVITY_TIMEOUT_AS_STRING; 1455 model_column = PEERINFO_MC_NEIGHBOUR_CONNECTIVITY_TIMEOUT_AS_STRING;
1460 else if (tvc_neighbour_state == column)
1461 model_column = PEERINFO_MC_NEIGHBOUR_STATE_TIMEOUT_AS_STRING;
1462 if (-1 == model_column) 1456 if (-1 == model_column)
1463 return FALSE; 1457 return FALSE;
1464 1458
@@ -1554,7 +1548,6 @@ run (void *cts)
1554 tvc_ats_connectivity = GTK_TREE_VIEW_COLUMN (get_object ("GNUNET_PEERINFO_GTK_main_window_ats_connectivity_treeviewcolumn")); 1548 tvc_ats_connectivity = GTK_TREE_VIEW_COLUMN (get_object ("GNUNET_PEERINFO_GTK_main_window_ats_connectivity_treeviewcolumn"));
1555 tvc_plugin_connectivity = GTK_TREE_VIEW_COLUMN (get_object ("GNUNET_PEERINFO_GTK_main_window_plugin_connectivity_treeviewcolumn")); 1549 tvc_plugin_connectivity = GTK_TREE_VIEW_COLUMN (get_object ("GNUNET_PEERINFO_GTK_main_window_plugin_connectivity_treeviewcolumn"));
1556 tvc_transport_connectivity = GTK_TREE_VIEW_COLUMN (get_object ("GNUNET_PEERINFO_GTK_main_window_transport_connectivity_treeviewcolumn")); 1550 tvc_transport_connectivity = GTK_TREE_VIEW_COLUMN (get_object ("GNUNET_PEERINFO_GTK_main_window_transport_connectivity_treeviewcolumn"));
1557 tvc_neighbour_state = GTK_TREE_VIEW_COLUMN (get_object ("GNUNET_PEERINFO_GTK_main_window_neighbour_state_treeviewcolumn"));
1558 /* setup main window */ 1551 /* setup main window */
1559 main_window = GTK_WIDGET (get_object ("GNUNET_PEERINFO_GTK_main_window")); 1552 main_window = GTK_WIDGET (get_object ("GNUNET_PEERINFO_GTK_main_window"));
1560 main_window = GNUNET_GTK_plug_me ("GNUNET_PEERINFO_GTK_PLUG", 1553 main_window = GNUNET_GTK_plug_me ("GNUNET_PEERINFO_GTK_PLUG",