GtkFileChooserNative adds `Open files read-only` checkbox
Hi, I'm creating an application that stores information in a database file opened by a GtkFileChooserNative
.
The dialog is created as such:
GtkFileChooserNative* openFileDialog{ gtk_file_chooser_native_new("Open Account", GTK_WINDOW(m_gobj), GTK_FILE_CHOOSER_ACTION_OPEN, "_Open", "_Cancel") };
gtk_native_dialog_set_modal(GTK_NATIVE_DIALOG(openFileDialog), true);
GtkFileFilter* filter{ gtk_file_filter_new() };
gtk_file_filter_set_name(filter, "Money Account (*.nmoney)");
gtk_file_filter_add_pattern(filter, "*.nmoney");
gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(openFileDialog), filter);
g_object_unref(filter);
gtk_native_dialog_show(GTK_NATIVE_DIALOG(openFileDialog));
However, the dialog when shown has this Open files read-only
checkbox, as shown below:
How can I get rid of this checkbox as it makes no sense in the context of this application?