From e036298aa2dc0903bdd2417f49f1de7e35cfea5f Mon Sep 17 00:00:00 2001 From: Lukas Sabota Date: Thu, 29 Oct 2020 16:23:36 -0400 Subject: [PATCH] remove uncessary and unsafe GtkWindow cast --- desmume/src/frontend/posix/gtk/main.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/desmume/src/frontend/posix/gtk/main.cpp b/desmume/src/frontend/posix/gtk/main.cpp index ac552c98b..334f32654 100644 --- a/desmume/src/frontend/posix/gtk/main.cpp +++ b/desmume/src/frontend/posix/gtk/main.cpp @@ -1824,9 +1824,6 @@ static void ImportBackupMemoryDialog(GSimpleAction *action, GVariant *parameter, GTK_FILE_CHOOSER_ACTION_OPEN, "_Open", "_Cancel"); - /* Only the dialog window is accepting events: */ - gtk_window_set_modal(GTK_WINDOW(pFileSelection), TRUE); - gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(pFileSelection), pFilter_raw); gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(pFileSelection), pFilter_ar); gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(pFileSelection), pFilter_any); @@ -1876,9 +1873,6 @@ static void ExportBackupMemoryDialog(GSimpleAction *action, GVariant *parameter, "_Save", "_Cancel"); gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (pFileSelection), TRUE); - /* Only the dialog window is accepting events: */ - gtk_window_set_modal(GTK_WINDOW(pFileSelection), TRUE); - gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(pFileSelection), pFilter_raw); gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(pFileSelection), pFilter_any);