|
Data Structures |
struct | node_data |
Defines |
#define | UPDATE_MIN 300 /**< Update screen every 5 minutes at least */ |
| Update screen every 5 minutes at least.
|
#define | DO_FREEZE FALSE |
Functions |
| RCSID ("$Id:nodes.c, v 1.56 2005/12/27 13:05:51 cbiere Exp $") |
void | nodes_gui_node_removed (gnet_node_t) |
| Callback: called when a node is removed from the backend.
|
void | nodes_gui_node_added (gnet_node_t) |
| Callback: called when a node is added from the backend.
|
void | nodes_gui_node_info_changed (gnet_node_t) |
| Callback: called when node information was changed by the backend.
|
void | nodes_gui_node_flags_changed (gnet_node_t) |
| Callback invoked when the node's user-visible flags are changed.
|
void | add_column (GtkTreeView *tree, const gchar *title, GtkTreeCellDataFunc cell_data_func, gpointer udata) |
| Create a column, associating the attribute ``attr'' (usually "text") of the cell_renderer to the first column of the model.
|
void | node_data_free (gpointer value) |
void | nodes_handles_foreach_free (gpointer unused_key, gpointer value, gpointer unused_udata) |
GtkListStore * | create_nodes_model (void) |
void | cell_renderer_func (GtkTreeViewColumn *unused_column, GtkCellRenderer *cell, GtkTreeModel *model, GtkTreeIter *iter, gpointer udata) |
void | nodes_gui_create_treeview_nodes (void) |
| Sets up the treeview_nodes object for use by settings_gui.
|
void | nodes_gui_remove_selected_helper (GtkTreeModel *model, GtkTreePath *unused_path, GtkTreeIter *iter, gpointer list_ptr) |
node_data * | find_node (gnet_node_t n) |
| Fetches the node_data that holds the data about the given node and knows the GtkTreeIter.
|
void | nodes_gui_update_node_info (struct node_data *data, gnet_node_info_t *info) |
| Updates vendor, version and info column.
|
void | nodes_gui_update_node_flags (struct node_data *data, gnet_node_flags_t *flags) |
const gchar * | peermode_to_string (node_peer_t m) |
void | update_tooltip (GtkTreeView *tv, GtkTreePath *path) |
gboolean | on_leave_notify (GtkWidget *widget, GdkEventCrossing *unused_event, gpointer unused_udata) |
void | host_lookup_callback (const gchar *hostname, gpointer key) |
void | on_cursor_changed (GtkTreeView *tv, gpointer unused_udata) |
void | nodes_gui_early_init (void) |
| Initialized the widgets.
|
void | nodes_gui_init (void) |
| Initialize the nodes controller.
|
void | nodes_gui_shutdown (void) |
| Unregister callbacks in the backend and clean up.
|
void | nodes_gui_remove_node (gnet_node_t n) |
| Removes all references to the given node handle in the gui.
|
void | nodes_gui_add_node (gnet_node_info_t *info) |
| Adds the given node to the gui.
|
void | update_row (gpointer key, gpointer value, gpointer user_data) |
void | nodes_gui_update_nodes_display (time_t now) |
| Update all the nodes at the same time.
|
void | nodes_gui_remove_selected (void) |
| Removes all selected nodes from the treeview and disconnects them.
|
void | nodes_gui_reverse_lookup_selected_helper (GtkTreeModel *model, GtkTreePath *unused_path, GtkTreeIter *iter, gpointer unused_data) |
void | nodes_gui_reverse_lookup_selected (void) |
| Performs a reverse lookup for all selected nodes.
|
void | nodes_gui_browse_selected_helper (GtkTreeModel *model, GtkTreePath *unused_path, GtkTreeIter *iter, gpointer unused_data) |
void | nodes_gui_browse_selected (void) |
Variables |
GHashTable * | ht_node_info_changed = NULL |
GHashTable * | ht_node_flags_changed = NULL |
GtkTreeView * | treeview_nodes = NULL |
GtkListStore * | nodes_model = NULL |
GHashTable * | nodes_handles = NULL |
GHashTable * | ht_pending_lookups = NULL |
tree_view_motion_t * | tvm_nodes |