[virt-tools-list] [PATCH] virt-viewer: set transient parent in connection's error dialog
Fabiano Fidêncio
fidencio at redhat.com
Thu Jan 8 12:09:48 UTC 2015
Commit c3d24f8b sets transient parent for the most part of the
GtkDialogs, but seems like this one was forgotten.
---
src/virt-viewer.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/virt-viewer.c b/src/virt-viewer.c
index 51e91c6..765b606 100644
--- a/src/virt-viewer.c
+++ b/src/virt-viewer.c
@@ -858,7 +858,9 @@ virt_viewer_connect(VirtViewerApp *app)
if (!virt_viewer_app_initial_connect(app, &error)) {
if (error != NULL) {
- GtkWidget *dialog = gtk_message_dialog_new(NULL,
+ VirtViewerWindow *main_window = virt_viewer_app_get_main_window(app);
+
+ GtkWidget *dialog = gtk_message_dialog_new(virt_viewer_window_get_window(main_window),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_CLOSE,
--
2.1.0
More information about the virt-tools-list
mailing list