/* proto_hier_stats_dlg.c
*
- * $Id: proto_hier_stats_dlg.c,v 1.16 2004/03/17 21:48:15 deniel Exp $
+ * $Id$
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
WIDGET_SET_SIZE(tree, DEF_DLG_WIDTH, height);
#else
WIDGET_SET_SIZE(tree, DEF_DLG_WIDTH, MAX_DLG_HEIGHT);
+ gtk_tree_view_expand_all(tree_view);
#endif
gtk_container_add(GTK_CONTAINER(sw), tree);
return;
}
- dlg = dlg_window_new("Ethereal: Protocol Hierarchy Statistics");
+ dlg = window_new(GTK_WINDOW_TOPLEVEL, "Ethereal: Protocol Hierarchy Statistics");
vbox = gtk_vbox_new(FALSE, 5);
gtk_container_border_width(GTK_CONTAINER(vbox), 5);
gtk_widget_show(bbox);
ok_bt = OBJECT_GET_DATA(bbox, GTK_STOCK_OK);
- SIGNAL_CONNECT_OBJECT(ok_bt, "clicked", gtk_widget_destroy, dlg);
- gtk_widget_grab_default(ok_bt);
+ window_set_cancel_button(dlg, ok_bt, window_cancel_button_cb);
- /* Catch the "key_press_event" signal in the window, so that we can
- catch the ESC key being pressed and act as if the "OK" button had
- been selected. */
- dlg_set_cancel(dlg, ok_bt);
+ SIGNAL_CONNECT(dlg, "delete_event", window_delete_event_cb, NULL);
gtk_widget_show_all(dlg);
+ window_present(dlg);
}