From 201fabada08dea475113b2b91f28f44d020d355e Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Mon, 5 Oct 2009 15:36:16 +0200 Subject: GtkFileChooser compatibility (conditionally using gtk 2.18 feature). --- mixgtk/mixgtk_external.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mixgtk/mixgtk_external.c') diff --git a/mixgtk/mixgtk_external.c b/mixgtk/mixgtk_external.c index 50fb421..534542f 100644 --- a/mixgtk/mixgtk_external.c +++ b/mixgtk/mixgtk_external.c @@ -108,6 +108,13 @@ init_widgets_ (void) (GTK_FILE_CHOOSER (ext_wdg_[ext_wdg_asm_chooser]), filter); gtk_file_chooser_set_filter (GTK_FILE_CHOOSER (ext_wdg_[ext_wdg_ed_chooser]), filter); + +#if GTK_CHECK_VERSION (2,18,0) + gtk_file_chooser_set_create_folders + (GTK_FILE_CHOOSER (ext_wdg_[ext_wdg_asm_chooser]), FALSE); + gtk_file_chooser_set_create_folders + (GTK_FILE_CHOOSER (ext_wdg_[ext_wdg_ed_chooser]), FALSE); +#endif // GTK_CHECK_VERSION } void -- cgit v1.2.3