From 731f2f6134a75cf5e45a0ae1dd6b249b10885f11 Mon Sep 17 00:00:00 2001 From: Adam Reichold Date: Mon, 7 Dec 2015 21:45:05 +0100 Subject: [PATCH] Temporary workaround for issue #2981, which is actually Gtk+ bug 759079 affecting version 3.18. --- rtgui/profilestore.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rtgui/profilestore.cc b/rtgui/profilestore.cc index 2da09ce40..2a94959c6 100644 --- a/rtgui/profilestore.cc +++ b/rtgui/profilestore.cc @@ -563,6 +563,11 @@ void ProfileStoreComboBox::refreshProfileList_ (Gtk::TreeModel::Row *parentRow, newSubMenu[methodColumns.label] = (*i)->label; newSubMenu[methodColumns.profileStoreEntry] = *i; + // HACK: Workaround for bug in Gtk+ 3.18... + Gtk::TreeModel::Row menuHeader = *(refTreeModel->append(newSubMenu->children())); + menuHeader[methodColumns.label] = (*i)->label; + menuHeader[methodColumns.profileStoreEntry] = *i; + refreshProfileList_ (&newSubMenu, (*i)->folderId, entryList); } else { refreshProfileList_ (parentRow, (*i)->folderId, entryList);