aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/sctp_graph_dlg.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2009-06-22 15:22:37 +0000
committerAnders Broman <anders.broman@ericsson.com>2009-06-22 15:22:37 +0000
commit485fc6805bb3f5349b322c2b293bfb7392e490c4 (patch)
tree3183745c46810985d3f08a25119dd4d5d5b2cf11 /gtk/sctp_graph_dlg.c
parent5562e6e8cf857edddc9f7682db5af06bcc5a1389 (diff)
Change window_new() to dlg_window_new() and destroy the window with the top level window.
svn path=/trunk/; revision=28810
Diffstat (limited to 'gtk/sctp_graph_dlg.c')
-rw-r--r--gtk/sctp_graph_dlg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/sctp_graph_dlg.c b/gtk/sctp_graph_dlg.c
index a672810ae1..051d89d5c4 100644
--- a/gtk/sctp_graph_dlg.c
+++ b/gtk/sctp_graph_dlg.c
@@ -1346,10 +1346,8 @@ static void init_sctp_graph_window(struct sctp_udata *u_data)
GtkTooltips *tooltip_in, *tooltip_out;
/* create the main window */
-
- u_data->io->window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
-
- gtk_widget_set_name(u_data->io->window, "SCTP Graphics");
+ u_data->io->window= dlg_window_new("WSCTP Graphics"); /* transient_for top_level */
+ gtk_window_set_destroy_with_parent (GTK_WINDOW(u_data->io->window), TRUE);
vbox=gtk_vbox_new(FALSE, 0);
gtk_container_add(GTK_CONTAINER(u_data->io->window), vbox);