diff options
Diffstat (limited to 'demos/node-editor/node-editor-window.c')
-rw-r--r-- | demos/node-editor/node-editor-window.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/demos/node-editor/node-editor-window.c b/demos/node-editor/node-editor-window.c index 25cf11b48d..519ae48d36 100644 --- a/demos/node-editor/node-editor-window.c +++ b/demos/node-editor/node-editor-window.c @@ -578,7 +578,10 @@ show_open_filechooser (NodeEditorWindow *self) "_Load", GTK_RESPONSE_ACCEPT, NULL); +G_GNUC_BEGIN_IGNORE_DEPRECATIONS gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT); +G_GNUC_END_IGNORE_DEPRECATIONS + gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); GFile *cwd = g_file_new_for_path ("."); @@ -654,7 +657,10 @@ save_cb (GtkWidget *button, "_Save", GTK_RESPONSE_ACCEPT, NULL); +G_GNUC_BEGIN_IGNORE_DEPRECATIONS gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT); +G_GNUC_END_IGNORE_DEPRECATIONS + gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); GFile *cwd = g_file_new_for_path ("."); @@ -773,7 +779,10 @@ export_image_cb (GtkWidget *button, "_Save", GTK_RESPONSE_ACCEPT, NULL); +G_GNUC_BEGIN_IGNORE_DEPRECATIONS gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT); +G_GNUC_END_IGNORE_DEPRECATIONS + gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); g_signal_connect (dialog, "response", G_CALLBACK (export_image_response_cb), texture); gtk_widget_show (dialog); |