summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
authorTingPing <TingPing@users.noreply.github.com>2013-09-25 02:02:26 -0400
committerTingPing <TingPing@users.noreply.github.com>2013-09-25 02:02:26 -0400
commit8028bb7f82eb9ddc782c3831a1d904a78dfef2d5 (patch)
treedece196827064744f00b20c7e258a7a51d473ee2 /src/fe-gtk
parent6fc412c4e2209e12a34a33a414311d57c7248f71 (diff)
Make join dialog modal
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/joind.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fe-gtk/joind.c b/src/fe-gtk/joind.c
index 7cdb7a14..dee64588 100644
--- a/src/fe-gtk/joind.c
+++ b/src/fe-gtk/joind.c
@@ -132,7 +132,10 @@ joind_show_dialog (server *serv)
 	serv->gui->joind_win = dialog1 = gtk_dialog_new ();
 	gtk_window_set_title (GTK_WINDOW (dialog1), _(DISPLAY_NAME": Connection Complete"));
 	gtk_window_set_type_hint (GTK_WINDOW (dialog1), GDK_WINDOW_TYPE_HINT_DIALOG);
-	gtk_window_set_position (GTK_WINDOW (dialog1), GTK_WIN_POS_MOUSE);
+	gtk_window_set_position (GTK_WINDOW (dialog1), GTK_WIN_POS_CENTER_ON_PARENT);
+	gtk_window_set_transient_for (GTK_WINDOW(dialog1), GTK_WINDOW(serv->front_session->gui->window));
+	gtk_window_set_modal (GTK_WINDOW (dialog1), TRUE);
+	gtk_window_set_resizable (GTK_WINDOW (dialog1), FALSE);
 
 	dialog_vbox1 = gtk_dialog_get_content_area (GTK_DIALOG (dialog1));
 	gtk_widget_show (dialog_vbox1);