remove uncessary and unsafe GtkWindow cast

This commit is contained in:
Lukas Sabota 2020-10-29 16:23:36 -04:00
parent eec3dd2d9c
commit e036298aa2
1 changed files with 0 additions and 6 deletions

View File

@ -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);