diff options
author | Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de> | 2021-11-17 22:17:18 +0300 |
---|---|---|
committer | Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de> | 2021-11-23 18:24:57 +0300 |
commit | f8c74f9f90ae541316c3f6a710a38799d93f9327 (patch) | |
tree | 25115aac9fb50cbb109a0866753d963b20e09c1d | |
parent | 85c1d3a2b3d31e4208e909be8425b9f379ea0425 (diff) |
x2go_plugin.c: Make all dialogs children of remmina connection window.
-rw-r--r-- | plugins/x2go/x2go_plugin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/x2go/x2go_plugin.c b/plugins/x2go/x2go_plugin.c index cad1665de..f353f9a71 100644 --- a/plugins/x2go/x2go_plugin.c +++ b/plugins/x2go/x2go_plugin.c @@ -1336,7 +1336,7 @@ static void rmplugin_x2go_pyhoca_cli_exited(GPid pid, struct _DialogData *ddata = g_new0(struct _DialogData, 1); SET_DIALOG_DATA(gp, ddata); - ddata->parent = NULL; + ddata->parent = GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(gp))); ddata->flags = GTK_DIALOG_MODAL; ddata->type = GTK_MESSAGE_ERROR; ddata->buttons = GTK_BUTTONS_OK; @@ -1817,7 +1817,7 @@ static gchar* rmplugin_x2go_ask_session(RemminaProtocolWidget *gp, GError **erro // Prep new DialogData struct. struct _DialogData *ddata = g_new0(struct _DialogData, 1); SET_DIALOG_DATA(gp, ddata); - ddata->parent = NULL; + ddata->parent = GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(gp))); ddata->flags = GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT; //ddata->type = GTK_MESSAGE_QUESTION; //ddata->buttons = GTK_BUTTONS_OK; // Doesn't get used in our custom factory. @@ -2095,7 +2095,7 @@ static gboolean rmplugin_x2go_exec_x2go(gchar *host, struct _DialogData* ddata = g_new0(struct _DialogData, 1); SET_DIALOG_DATA(gp, ddata); - ddata->parent = NULL; + ddata->parent = GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(gp))); ddata->flags = GTK_DIALOG_MODAL; ddata->type = GTK_MESSAGE_ERROR; ddata->buttons = GTK_BUTTONS_OK; |