aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/ansi_map_stat.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/ansi_map_stat.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/ansi_map_stat.c')
-rw-r--r--gtk/ansi_map_stat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/ansi_map_stat.c b/gtk/ansi_map_stat.c
index 7cc52ae712..de1ec96e62 100644
--- a/gtk/ansi_map_stat.c
+++ b/gtk/ansi_map_stat.c
@@ -301,8 +301,10 @@ ansi_map_stat_gtk_win_create(
GtkWidget *bbox;
- dlg_p->win = window_new(GTK_WINDOW_TOPLEVEL, title);
- gtk_window_set_default_size(GTK_WINDOW(dlg_p->win), 500, 450);
+ dlg_p->win= dlg_window_new(title); /* transient_for top_level */
+ gtk_window_set_destroy_with_parent (GTK_WINDOW(dlg_p->win), TRUE);
+
+ gtk_window_set_default_size(GTK_WINDOW(dlg_p->win), 500, 450);
vbox = gtk_vbox_new(FALSE, 3);
gtk_container_add(GTK_CONTAINER(dlg_p->win), vbox);