From Didier Gautheron:

Treeview for hostlist. 
Notes:
- tested without and with geoip lib but only with the free DB (no lat/long data) thus 'open_as_map_cb' is not really tested.
 
- It changes the sorting of addresses if 'resolve names' is set and uses the same sorting than conversations. The old way may make more sense for ethernet though.

svn path=/trunk/; revision=30420
This commit is contained in:
Anders Broman 2009-10-09 09:01:04 +00:00
parent 58217b6aa0
commit b8755d9305
2 changed files with 670 additions and 418 deletions

File diff suppressed because it is too large Load Diff

View File

@ -40,6 +40,11 @@ typedef struct _hostlist_talker_t {
guint64 tx_frames; /**< number of transmitted packets */
guint64 rx_bytes; /**< number of received bytes */
guint64 tx_bytes; /**< number of transmitted bytes */
gboolean modified; /**< new to redraw the row */
GtkTreeIter iter;
gboolean iter_valid; /**< not a new row */
} hostlist_talker_t;
#define NUM_BUILTIN_COLS 8
@ -59,14 +64,16 @@ typedef struct _hostlist_table {
GtkWidget *page_lb; /**< page label */
GtkWidget *name_lb; /**< name label */
GtkWidget *scrolled_window; /**< the scrolled window */
GtkCList *table; /**< the GTK table */
guint32 num_columns; /**< number of columns in the above table */
GtkTreeView *table; /**< the GTK table */
const char *default_titles[NUM_HOSTLIST_COLS]; /**< Column headers */
GtkWidget *menu; /**< context menu */
gboolean has_ports; /**< table has ports */
guint32 num_hosts; /**< number of hosts (0 or 1) */
hostlist_talker_t *hosts; /**< array of host values */
GArray *hosts; /**< array of host values */
GHashTable *hashtable; /**< conversations hash table */
gboolean fixed_col; /**< if switched to fixed column */
gboolean resolve_names; /**< resolve address names? */
gboolean geoip_visible; /**< if geoip columns are visible */
} hostlist_table;
/** Register the hostlist table for the multiple hostlist window.