| 175 | } |
| 176 | |
| 177 | GtkFileChooser * |
| 178 | ghb_file_chooser_new (const char *title, GtkWindow *parent, GtkFileChooserAction action, |
| 179 | const char *accept_label, const char *cancel_label) |
| 180 | { |
| 181 | if (!ghb_dict_get_bool(ghb_ud()->prefs, "NativeFileChooser")) |
| 182 | { |
| 183 | return GTK_FILE_CHOOSER(gtk_file_chooser_dialog_new(title, parent, action, |
| 184 | accept_label, GTK_RESPONSE_ACCEPT, |
| 185 | cancel_label, GTK_RESPONSE_CANCEL, |
| 186 | NULL)); |
| 187 | } |
| 188 | else |
| 189 | { |
| 190 | return GTK_FILE_CHOOSER(gtk_file_chooser_native_new(title, parent, action, |
| 191 | accept_label, cancel_label)); |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | void |
| 196 | ghb_file_chooser_set_modal (GtkFileChooser *chooser, gboolean modal) |
no test coverage detected