summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/document-properties.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/dialog/document-properties.cpp')
-rw-r--r--src/ui/dialog/document-properties.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/dialog/document-properties.cpp b/src/ui/dialog/document-properties.cpp
index 605b9c637..7cd00c319 100644
--- a/src/ui/dialog/document-properties.cpp
+++ b/src/ui/dialog/document-properties.cpp
@@ -307,13 +307,21 @@ void DocumentProperties::build_snap()
#if ENABLE_LCMS
/// Populates the available color profiles combo box
void DocumentProperties::populate_available_profiles(){
+#if WITH_GTKMM_2_24
_combo_avail.remove_all(); // Clear any existing items in the combo box
+#else
+ _combo_avail.clear_items(); // Clear any existing items in the combo box
+#endif
// Iterate through the list of profiles and add the name to the combo box.
std::vector<std::pair<Glib::ustring, Glib::ustring> > pairs = ColorProfile::getProfileFilesWithNames();
for ( std::vector<std::pair<Glib::ustring, Glib::ustring> >::const_iterator it = pairs.begin(); it != pairs.end(); ++it ) {
Glib::ustring name = it->second;
+#if WITH_GTKMM_2_24
_combo_avail.append(name);
+#else
+ _combo_avail.append_text(name);
+#endif
}
}