2001-03-22 23:54:47 +00:00
|
|
|
/* proto_hier_stats_dlg.c
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2001-03-22 23:54:47 +00:00
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2001-03-22 23:54:47 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
#include "proto_hier_stats.h"
|
2005-08-20 14:08:53 +00:00
|
|
|
#include "proto_hier_stats_dlg.h"
|
2001-03-22 23:54:47 +00:00
|
|
|
#include "dlg_utils.h"
|
2005-08-20 12:09:48 +00:00
|
|
|
#include "gui_utils.h"
|
2001-03-22 23:54:47 +00:00
|
|
|
#include "main.h"
|
2002-11-11 15:39:06 +00:00
|
|
|
#include "compat_macros.h"
|
2005-01-20 23:17:23 +00:00
|
|
|
#include "help_dlg.h"
|
2001-03-22 23:54:47 +00:00
|
|
|
|
2002-11-03 17:38:45 +00:00
|
|
|
#if GTK_MAJOR_VERSION < 2
|
2004-03-17 21:48:15 +00:00
|
|
|
#define NUM_STAT_COLUMNS 8
|
2002-11-03 17:38:45 +00:00
|
|
|
#else
|
|
|
|
enum {
|
|
|
|
PROTOCOL_COLUMN,
|
|
|
|
PRCT_PKTS_COLUMN,
|
|
|
|
PKTS_COLUMN,
|
|
|
|
BYTES_COLUMN,
|
2004-03-17 21:48:15 +00:00
|
|
|
BANDWIDTH_COLUMN,
|
2002-11-03 17:38:45 +00:00
|
|
|
END_PKTS_COLUMN,
|
|
|
|
END_BYTES_COLUMN,
|
2004-03-17 21:48:15 +00:00
|
|
|
END_BANDWIDTH_COLUMN,
|
2002-11-03 17:38:45 +00:00
|
|
|
NUM_STAT_COLUMNS /* must be the last */
|
|
|
|
};
|
|
|
|
#endif
|
2001-03-22 23:54:47 +00:00
|
|
|
|
|
|
|
typedef struct {
|
2002-11-03 17:38:45 +00:00
|
|
|
#if GTK_MAJOR_VERSION < 2
|
|
|
|
GtkCTree *tree;
|
|
|
|
GtkCTreeNode *parent;
|
|
|
|
#else
|
|
|
|
GtkTreeView *tree_view;
|
|
|
|
GtkTreeIter *iter;
|
|
|
|
#endif
|
|
|
|
ph_stats_t *ps;
|
2001-03-22 23:54:47 +00:00
|
|
|
} draw_info_t;
|
|
|
|
|
|
|
|
|
|
|
|
#define PCT(x,y) (100.0 * (float)(x) / (float)(y))
|
2004-03-17 21:48:15 +00:00
|
|
|
#define BANDWITDH(bytes,secs) ((bytes) * 8.0 / ((secs) * 1000.0 * 1000.0))
|
2001-03-22 23:54:47 +00:00
|
|
|
|
|
|
|
static void
|
2002-11-03 17:38:45 +00:00
|
|
|
fill_in_tree_node(GNode *node, gpointer data)
|
2001-03-22 23:54:47 +00:00
|
|
|
{
|
2002-11-03 17:38:45 +00:00
|
|
|
ph_stats_node_t *stats = node->data;
|
|
|
|
draw_info_t *di = data;
|
2004-03-17 21:48:15 +00:00
|
|
|
ph_stats_t *ps = di->ps;
|
|
|
|
gboolean is_leaf;
|
|
|
|
draw_info_t child_di;
|
2005-08-10 19:49:45 +00:00
|
|
|
double seconds;
|
|
|
|
gchar *text[NUM_STAT_COLUMNS];
|
2002-11-03 17:38:45 +00:00
|
|
|
#if GTK_MAJOR_VERSION < 2
|
|
|
|
GtkCTree *tree = di->tree;
|
|
|
|
GtkCTreeNode *parent = di->parent;
|
|
|
|
GtkCTreeNode *new_node;
|
|
|
|
#else
|
|
|
|
GtkTreeView *tree_view = di->tree_view;
|
|
|
|
GtkTreeIter *iter = di->iter;
|
|
|
|
GtkTreeStore *store;
|
|
|
|
GtkTreeIter new_iter;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
if (g_node_n_children(node) > 0) {
|
|
|
|
is_leaf = FALSE;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
is_leaf = TRUE;
|
|
|
|
}
|
|
|
|
|
2004-03-17 21:48:15 +00:00
|
|
|
seconds = ps->last_time - ps->first_time;
|
|
|
|
|
2005-08-10 19:49:45 +00:00
|
|
|
text[0] = (gchar *) (stats->hfinfo->name);
|
2002-11-03 17:38:45 +00:00
|
|
|
text[1] = g_strdup_printf("%6.2f%%",
|
|
|
|
PCT(stats->num_pkts_total, ps->tot_packets));
|
|
|
|
text[2] = g_strdup_printf("%u", stats->num_pkts_total);
|
|
|
|
text[3] = g_strdup_printf("%u", stats->num_bytes_total);
|
2004-03-17 21:48:15 +00:00
|
|
|
if (seconds > 0.0) {
|
|
|
|
text[4] = g_strdup_printf("%.3f",
|
|
|
|
BANDWITDH(stats->num_bytes_total, seconds));
|
|
|
|
} else {
|
|
|
|
text[4] = "n.c.";
|
|
|
|
}
|
|
|
|
text[5] = g_strdup_printf("%u", stats->num_pkts_last);
|
|
|
|
text[6] = g_strdup_printf("%u", stats->num_bytes_last);
|
|
|
|
if (seconds > 0.0) {
|
|
|
|
text[7] = g_strdup_printf("%.3f",
|
|
|
|
BANDWITDH(stats->num_bytes_last, seconds));
|
|
|
|
} else {
|
|
|
|
text[7] = "n.c.";
|
|
|
|
}
|
2002-11-03 17:38:45 +00:00
|
|
|
|
2004-03-17 21:48:15 +00:00
|
|
|
#if GTK_MAJOR_VERSION < 2
|
2002-11-03 17:38:45 +00:00
|
|
|
new_node = gtk_ctree_insert_node(tree, parent, NULL, text,
|
2004-03-17 21:48:15 +00:00
|
|
|
7, NULL, NULL, NULL, NULL,
|
2002-11-03 17:38:45 +00:00
|
|
|
is_leaf, TRUE);
|
|
|
|
#else
|
|
|
|
store = GTK_TREE_STORE(gtk_tree_view_get_model(tree_view));
|
|
|
|
gtk_tree_store_append(store, &new_iter, iter);
|
|
|
|
gtk_tree_store_set(store, &new_iter,
|
|
|
|
PROTOCOL_COLUMN, text[0],
|
|
|
|
PRCT_PKTS_COLUMN, text[1],
|
2004-03-17 21:48:15 +00:00
|
|
|
PKTS_COLUMN, text[2],
|
|
|
|
BYTES_COLUMN, text[3],
|
|
|
|
BANDWIDTH_COLUMN, text[4],
|
|
|
|
END_PKTS_COLUMN, text[5],
|
|
|
|
END_BYTES_COLUMN, text[6],
|
|
|
|
END_BANDWIDTH_COLUMN, text[7],
|
2002-11-03 17:38:45 +00:00
|
|
|
-1);
|
|
|
|
#endif
|
2001-03-22 23:54:47 +00:00
|
|
|
|
2002-11-03 17:38:45 +00:00
|
|
|
g_free(text[1]);
|
|
|
|
g_free(text[2]);
|
|
|
|
g_free(text[3]);
|
2004-03-17 21:48:15 +00:00
|
|
|
if (seconds > 0.0) g_free(text[4]);
|
2002-11-03 17:38:45 +00:00
|
|
|
g_free(text[5]);
|
2004-03-17 21:48:15 +00:00
|
|
|
g_free(text[6]);
|
|
|
|
if (seconds > 0.0) g_free(text[7]);
|
2002-11-03 17:38:45 +00:00
|
|
|
|
2004-03-17 21:48:15 +00:00
|
|
|
#if GTK_MAJOR_VERSION < 2
|
2002-11-03 17:38:45 +00:00
|
|
|
child_di.tree = tree;
|
|
|
|
child_di.parent = new_node;
|
|
|
|
#else
|
|
|
|
child_di.tree_view = tree_view;
|
|
|
|
child_di.iter = &new_iter;
|
|
|
|
#endif
|
|
|
|
child_di.ps = ps;
|
2001-03-22 23:54:47 +00:00
|
|
|
|
2002-11-03 17:38:45 +00:00
|
|
|
g_node_children_foreach(node, G_TRAVERSE_ALL,
|
|
|
|
fill_in_tree_node, &child_di);
|
2001-03-22 23:54:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2002-11-03 17:38:45 +00:00
|
|
|
fill_in_tree(GtkWidget *tree, ph_stats_t *ps)
|
2001-03-22 23:54:47 +00:00
|
|
|
{
|
|
|
|
draw_info_t di;
|
|
|
|
|
2002-11-03 17:38:45 +00:00
|
|
|
#if GTK_MAJOR_VERSION < 2
|
2001-03-22 23:54:47 +00:00
|
|
|
di.tree = GTK_CTREE(tree);
|
|
|
|
di.parent = NULL;
|
2002-11-03 17:38:45 +00:00
|
|
|
#else
|
|
|
|
di.tree_view = GTK_TREE_VIEW(tree);
|
|
|
|
di.iter = NULL;
|
|
|
|
#endif
|
2001-03-22 23:54:47 +00:00
|
|
|
di.ps = ps;
|
|
|
|
|
|
|
|
g_node_children_foreach(ps->stats_tree, G_TRAVERSE_ALL,
|
2002-11-03 17:38:45 +00:00
|
|
|
fill_in_tree_node, &di);
|
2001-03-22 23:54:47 +00:00
|
|
|
}
|
|
|
|
|
2001-12-31 20:40:34 +00:00
|
|
|
#define MAX_DLG_HEIGHT 450
|
2004-03-17 21:48:15 +00:00
|
|
|
#define DEF_DLG_WIDTH 700
|
2001-03-22 23:54:47 +00:00
|
|
|
static void
|
2001-03-24 02:07:22 +00:00
|
|
|
create_tree(GtkWidget *container, ph_stats_t *ps)
|
2001-03-22 23:54:47 +00:00
|
|
|
{
|
2002-11-03 17:38:45 +00:00
|
|
|
GtkWidget *sw, *tree;
|
|
|
|
#if GTK_MAJOR_VERSION < 2
|
|
|
|
int i, height;
|
|
|
|
gchar *column_titles[NUM_STAT_COLUMNS] = {
|
|
|
|
"Protocol",
|
|
|
|
"% Packets",
|
|
|
|
"Packets",
|
|
|
|
"Bytes",
|
2004-03-17 21:48:15 +00:00
|
|
|
"Mbit/s",
|
2002-11-03 17:38:45 +00:00
|
|
|
"End Packets",
|
|
|
|
"End Bytes",
|
2004-03-17 21:48:15 +00:00
|
|
|
"End Mbit/s"
|
2002-11-03 17:38:45 +00:00
|
|
|
};
|
|
|
|
#else
|
|
|
|
GtkTreeView *tree_view;
|
|
|
|
GtkTreeStore *store;
|
|
|
|
GtkCellRenderer *renderer;
|
|
|
|
GtkTreeViewColumn *column;
|
|
|
|
#endif
|
2001-03-22 23:54:47 +00:00
|
|
|
|
2002-11-03 17:38:45 +00:00
|
|
|
/* Scrolled Window */
|
2004-02-06 19:19:12 +00:00
|
|
|
sw = scrolled_window_new(NULL, NULL);
|
|
|
|
#if GTK_MAJOR_VERSION >= 2
|
|
|
|
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(sw),
|
|
|
|
GTK_SHADOW_IN);
|
|
|
|
#endif
|
2002-11-03 17:38:45 +00:00
|
|
|
gtk_container_add(GTK_CONTAINER(container), sw);
|
|
|
|
|
|
|
|
#if GTK_MAJOR_VERSION < 2
|
|
|
|
tree = ctree_new_with_titles(NUM_STAT_COLUMNS, 0, column_titles);
|
|
|
|
|
|
|
|
/* XXX - get 'pos' to set vertical scroll-bar placement. */
|
|
|
|
|
|
|
|
/* The title bars do nothing. */
|
|
|
|
gtk_clist_column_titles_passive(GTK_CLIST(tree));
|
|
|
|
|
|
|
|
/* Auto Resize all columns */
|
|
|
|
for (i = 0; i < NUM_STAT_COLUMNS; i++) {
|
|
|
|
gtk_clist_set_column_auto_resize(GTK_CLIST(tree), i, TRUE);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Right justify numeric columns */
|
2004-03-17 21:48:15 +00:00
|
|
|
for (i = 1; i < NUM_STAT_COLUMNS; i++) {
|
2002-11-03 17:38:45 +00:00
|
|
|
gtk_clist_set_column_justification(GTK_CLIST(tree), i,
|
|
|
|
GTK_JUSTIFY_RIGHT);
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
store = gtk_tree_store_new(NUM_STAT_COLUMNS, G_TYPE_STRING,
|
2004-03-17 21:48:15 +00:00
|
|
|
G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,
|
|
|
|
G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,
|
|
|
|
G_TYPE_STRING);
|
2002-11-03 17:38:45 +00:00
|
|
|
tree = tree_view_new(GTK_TREE_MODEL(store));
|
|
|
|
tree_view = GTK_TREE_VIEW(tree);
|
|
|
|
gtk_tree_view_set_headers_visible(tree_view, TRUE);
|
|
|
|
gtk_tree_view_set_headers_clickable(tree_view, FALSE);
|
|
|
|
renderer = gtk_cell_renderer_text_new();
|
|
|
|
column = gtk_tree_view_column_new_with_attributes("Protocol", renderer,
|
|
|
|
"text", PROTOCOL_COLUMN,
|
|
|
|
NULL);
|
|
|
|
gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
|
|
|
|
gtk_tree_view_append_column(tree_view, column);
|
|
|
|
renderer = gtk_cell_renderer_text_new();
|
|
|
|
column = gtk_tree_view_column_new_with_attributes("% Packets", renderer,
|
|
|
|
"text", PRCT_PKTS_COLUMN,
|
|
|
|
NULL);
|
|
|
|
g_object_set(G_OBJECT(renderer), "xalign", 1.0, NULL);
|
|
|
|
gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
|
|
|
|
gtk_tree_view_append_column(tree_view, column);
|
|
|
|
renderer = gtk_cell_renderer_text_new();
|
|
|
|
column = gtk_tree_view_column_new_with_attributes("Packets", renderer,
|
|
|
|
"text", PKTS_COLUMN,
|
|
|
|
NULL);
|
|
|
|
g_object_set(G_OBJECT(renderer), "xalign", 1.0, NULL);
|
|
|
|
gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
|
|
|
|
gtk_tree_view_append_column(tree_view, column);
|
|
|
|
renderer = gtk_cell_renderer_text_new();
|
|
|
|
column = gtk_tree_view_column_new_with_attributes("Bytes", renderer,
|
|
|
|
"text", BYTES_COLUMN,
|
|
|
|
NULL);
|
|
|
|
g_object_set(G_OBJECT(renderer), "xalign", 1.0, NULL);
|
|
|
|
gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
|
|
|
|
gtk_tree_view_append_column(tree_view, column);
|
|
|
|
renderer = gtk_cell_renderer_text_new();
|
2004-03-17 21:48:15 +00:00
|
|
|
column = gtk_tree_view_column_new_with_attributes("Mbit/s", renderer,
|
|
|
|
"text",
|
|
|
|
BANDWIDTH_COLUMN,
|
|
|
|
NULL);
|
|
|
|
g_object_set(G_OBJECT(renderer), "xalign", 1.0, NULL);
|
|
|
|
gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
|
|
|
|
gtk_tree_view_append_column(tree_view, column);
|
|
|
|
renderer = gtk_cell_renderer_text_new();
|
2002-11-03 17:38:45 +00:00
|
|
|
column = gtk_tree_view_column_new_with_attributes("End Packets",
|
|
|
|
renderer, "text",
|
|
|
|
END_PKTS_COLUMN, NULL);
|
|
|
|
g_object_set(G_OBJECT(renderer), "xalign", 1.0, NULL);
|
|
|
|
gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
|
|
|
|
gtk_tree_view_append_column(tree_view, column);
|
|
|
|
renderer = gtk_cell_renderer_text_new();
|
|
|
|
column = gtk_tree_view_column_new_with_attributes("End Bytes", renderer,
|
|
|
|
"text", END_BYTES_COLUMN,
|
|
|
|
NULL);
|
|
|
|
g_object_set(G_OBJECT(renderer), "xalign", 1.0, NULL);
|
|
|
|
gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
|
|
|
|
gtk_tree_view_append_column(tree_view, column);
|
2004-03-17 21:48:15 +00:00
|
|
|
renderer = gtk_cell_renderer_text_new();
|
|
|
|
column = gtk_tree_view_column_new_with_attributes("End Mbit/s", renderer,
|
|
|
|
"text",
|
|
|
|
END_BANDWIDTH_COLUMN,
|
|
|
|
NULL);
|
|
|
|
g_object_set(G_OBJECT(renderer), "xalign", 1.0, NULL);
|
|
|
|
gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
|
|
|
|
gtk_tree_view_append_column(tree_view, column);
|
2002-11-03 17:38:45 +00:00
|
|
|
#endif
|
2001-03-22 23:54:47 +00:00
|
|
|
|
2002-11-03 17:38:45 +00:00
|
|
|
/* Fill in the data. */
|
|
|
|
fill_in_tree(tree, ps);
|
2001-03-22 23:54:47 +00:00
|
|
|
|
2002-11-03 17:38:45 +00:00
|
|
|
#if GTK_MAJOR_VERSION < 2
|
|
|
|
height = GTK_CLIST(tree)->rows * (GTK_CLIST(tree)->row_height + 5);
|
|
|
|
height = MIN(height, MAX_DLG_HEIGHT);
|
2002-11-11 15:39:06 +00:00
|
|
|
WIDGET_SET_SIZE(tree, DEF_DLG_WIDTH, height);
|
2002-11-03 17:38:45 +00:00
|
|
|
#else
|
2002-11-11 15:39:06 +00:00
|
|
|
WIDGET_SET_SIZE(tree, DEF_DLG_WIDTH, MAX_DLG_HEIGHT);
|
2004-05-01 18:40:20 +00:00
|
|
|
gtk_tree_view_expand_all(tree_view);
|
2002-11-03 17:38:45 +00:00
|
|
|
#endif
|
2001-03-22 23:54:47 +00:00
|
|
|
|
2002-11-03 17:38:45 +00:00
|
|
|
gtk_container_add(GTK_CONTAINER(sw), tree);
|
2001-03-22 23:54:47 +00:00
|
|
|
}
|
|
|
|
|
2005-08-20 14:08:53 +00:00
|
|
|
void
|
2002-03-05 11:56:00 +00:00
|
|
|
proto_hier_stats_cb(GtkWidget *w _U_, gpointer d _U_)
|
2001-03-22 23:54:47 +00:00
|
|
|
{
|
2001-03-24 02:07:22 +00:00
|
|
|
ph_stats_t *ps;
|
2005-01-20 23:17:23 +00:00
|
|
|
GtkWidget *dlg, *ok_bt, *help_bt, *vbox, *bbox;
|
2001-03-22 23:54:47 +00:00
|
|
|
|
2001-03-24 02:07:22 +00:00
|
|
|
/* Get the statistics. */
|
|
|
|
ps = ph_stats_new();
|
|
|
|
if (ps == NULL) {
|
|
|
|
/* The user gave up before we finished; don't pop up
|
|
|
|
a statistics window. */
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2006-05-22 07:29:40 +00:00
|
|
|
dlg = window_new(GTK_WINDOW_TOPLEVEL, "Wireshark: Protocol Hierarchy Statistics");
|
2001-03-22 23:54:47 +00:00
|
|
|
|
|
|
|
vbox = gtk_vbox_new(FALSE, 5);
|
|
|
|
gtk_container_border_width(GTK_CONTAINER(vbox), 5);
|
|
|
|
gtk_container_add(GTK_CONTAINER(dlg), vbox);
|
|
|
|
|
2004-01-21 21:19:34 +00:00
|
|
|
/* Data section */
|
|
|
|
create_tree(vbox, ps);
|
|
|
|
|
2004-03-17 21:48:15 +00:00
|
|
|
ph_stats_free(ps);
|
|
|
|
|
2004-01-21 21:19:34 +00:00
|
|
|
/* Button row. */
|
2005-01-20 23:17:23 +00:00
|
|
|
if(topic_available(HELP_STATS_PROTO_HIERARCHY_DIALOG)) {
|
|
|
|
bbox = dlg_button_row_new(GTK_STOCK_OK, GTK_STOCK_HELP, NULL);
|
|
|
|
} else {
|
|
|
|
bbox = dlg_button_row_new(GTK_STOCK_OK, NULL);
|
|
|
|
}
|
2004-03-17 21:48:15 +00:00
|
|
|
gtk_box_pack_end(GTK_BOX(vbox), bbox, FALSE, FALSE, 0);
|
|
|
|
gtk_widget_show(bbox);
|
2001-03-22 23:54:47 +00:00
|
|
|
|
2004-03-17 21:48:15 +00:00
|
|
|
ok_bt = OBJECT_GET_DATA(bbox, GTK_STOCK_OK);
|
2004-05-23 23:24:07 +00:00
|
|
|
window_set_cancel_button(dlg, ok_bt, window_cancel_button_cb);
|
2001-03-22 23:54:47 +00:00
|
|
|
|
2005-01-20 23:17:23 +00:00
|
|
|
if(topic_available(HELP_STATS_PROTO_HIERARCHY_DIALOG)) {
|
|
|
|
help_bt = OBJECT_GET_DATA(bbox, GTK_STOCK_HELP);
|
|
|
|
SIGNAL_CONNECT(help_bt, "clicked", topic_cb, HELP_STATS_PROTO_HIERARCHY_DIALOG);
|
|
|
|
}
|
|
|
|
|
2004-05-23 23:24:07 +00:00
|
|
|
SIGNAL_CONNECT(dlg, "delete_event", window_delete_event_cb, NULL);
|
2001-03-22 23:54:47 +00:00
|
|
|
|
|
|
|
gtk_widget_show_all(dlg);
|
2004-05-23 23:24:07 +00:00
|
|
|
window_present(dlg);
|
2001-03-22 23:54:47 +00:00
|
|
|
}
|
|
|
|
|