aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/hostlist_table.c
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2009-06-21 20:42:07 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2009-06-21 20:42:07 +0000
commit7d575e7a5e87006f78dbe2c940150fb367c25951 (patch)
tree6b95952b18f23f80e6dc61e47fafa350258a72a0 /gtk/hostlist_table.c
parent8780361baeb0e489fb9c7f1adfd2d5512d39d17b (diff)
Change window_new() to dlg_window_new() and destroy the window with the top level window.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28796 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/hostlist_table.c')
-rw-r--r--gtk/hostlist_table.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/hostlist_table.c b/gtk/hostlist_table.c
index 1e732d8c49..17de231ef1 100644
--- a/gtk/hostlist_table.c
+++ b/gtk/hostlist_table.c
@@ -893,7 +893,8 @@ init_hostlist_table(gboolean hide_ports, const char *table_name, const char *tap
hosttable->filter=filter;
hosttable->use_dfilter=FALSE;
g_snprintf(title, sizeof(title), "%s Endpoints: %s", table_name, cf_get_display_name(&cfile));
- hosttable->win=window_new(GTK_WINDOW_TOPLEVEL, title);
+ hosttable->win = dlg_window_new(title); /* transient_for top_level */
+ gtk_window_set_destroy_with_parent (GTK_WINDOW(hosttable->win), TRUE);
gtk_window_set_default_size(GTK_WINDOW(hosttable->win), 750, 400);