summaryrefslogtreecommitdiffhomepage
path: root/mixgtk
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-10-05 15:36:16 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-10-05 15:36:16 +0200
commit201fabada08dea475113b2b91f28f44d020d355e (patch)
tree3f3f6171b4d8ae38b77dc29a0be570649fa38d58 /mixgtk
parent43cf2e905b1751db4464d6acb6e8e250cb691141 (diff)
downloadmdk-201fabada08dea475113b2b91f28f44d020d355e.tar.gz
mdk-201fabada08dea475113b2b91f28f44d020d355e.tar.bz2
GtkFileChooser compatibility (conditionally using gtk 2.18 feature).
Diffstat (limited to 'mixgtk')
-rw-r--r--mixgtk/mixgtk.glade2
-rw-r--r--mixgtk/mixgtk_external.c7
2 files changed, 7 insertions, 2 deletions
diff --git a/mixgtk/mixgtk.glade b/mixgtk/mixgtk.glade
index 9afdd56..c28f6f4 100644
--- a/mixgtk/mixgtk.glade
+++ b/mixgtk/mixgtk.glade
@@ -1421,7 +1421,6 @@ disk7</property>
<property name="height_request">31</property>
<property name="visible">True</property>
<property name="use_preview_label">False</property>
- <property name="create_folders">False</property>
<property name="preview_widget_active">False</property>
</widget>
<packing>
@@ -1459,7 +1458,6 @@ disk7</property>
<property name="height_request">31</property>
<property name="visible">True</property>
<property name="use_preview_label">False</property>
- <property name="create_folders">False</property>
<property name="preview_widget_active">False</property>
<property name="title" translatable="yes">Select mixasm executable</property>
</widget>
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