Index: xchat-gnome-0.30.0~git20110728/src/fe-gnome/connect-dialog.c
===================================================================
--- xchat-gnome-0.30.0~git20110728.orig/src/fe-gnome/connect-dialog.c	2011-08-06 12:45:04.800009655 +0700
+++ xchat-gnome-0.30.0~git20110728/src/fe-gnome/connect-dialog.c	2011-08-06 12:45:19.504010448 +0700
@@ -154,6 +154,8 @@
 	GtkTreeViewColumn *column = gtk_tree_view_column_new_with_attributes ("name", renderer, "text", 0, NULL);
 	gtk_tree_view_append_column (GTK_TREE_VIEW (dialog->server_list), column);
 
+	gtk_widget_reparent (dialog->toplevel, GTK_DIALOG(dialog)->vbox);
+
 	GtkWidget *button = gtk_button_new_with_mnemonic (_("C_onnect"));
 	gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE);
 	gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button, GTK_RESPONSE_OK);
Index: xchat-gnome-0.30.0~git20110728/src/fe-gnome/dcc-window.c
===================================================================
--- xchat-gnome-0.30.0~git20110728.orig/src/fe-gnome/dcc-window.c	2011-08-06 12:45:04.840009656 +0700
+++ xchat-gnome-0.30.0~git20110728/src/fe-gnome/dcc-window.c	2011-08-06 12:48:10.864019681 +0700
@@ -110,7 +110,7 @@
 	gtk_tree_view_set_model (GTK_TREE_VIEW (window->transfer_list), GTK_TREE_MODEL (window->transfer_store));
 
 	gtk_container_set_border_width (GTK_CONTAINER (window), 12);
-	gtk_container_add (GTK_CONTAINER (window), window->toplevel);
+	gtk_widget_reparent (window->toplevel, window);
 
 	gtk_window_set_default_size (GTK_WINDOW (window), 300, 400);
 	gtk_window_set_title (GTK_WINDOW (window), _("File Transfers"));
