[glom] Dialog_Layout_Details::save_to_document(): Support top-level calendar portal too.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Dialog_Layout_Details::save_to_document(): Support top-level calendar portal too.
- Date: Thu, 4 Feb 2016 20:06:43 +0000 (UTC)
commit 50d24c5068ba21e2ff8068225bd0fa3ff86f4a53
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Jan 28 23:38:08 2016 +0100
Dialog_Layout_Details::save_to_document(): Support top-level calendar portal too.
Though I don't think the rest of the code supports this yet.
glom/mode_design/layout/dialog_layout_details.cc | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/glom/mode_design/layout/dialog_layout_details.cc
b/glom/mode_design/layout/dialog_layout_details.cc
index 46e638c..d170664 100644
--- a/glom/mode_design/layout/dialog_layout_details.cc
+++ b/glom/mode_design/layout/dialog_layout_details.cc
@@ -1055,11 +1055,15 @@ void Dialog_Layout_Details::save_to_document()
if(!layout_group)
continue;
+ //TODO: This is very ugly:
auto layout_portal = std::dynamic_pointer_cast<LayoutItem_Portal>(layout_item);
+ auto layout_calendar_portal = std::dynamic_pointer_cast<LayoutItem_CalendarPortal>(layout_item);
auto layout_notebook = std::dynamic_pointer_cast<LayoutItem_Notebook>(layout_item);
std::shared_ptr<LayoutGroup> group;
if(layout_portal) {
group = std::make_shared<LayoutItem_Portal>();
+ } else if(layout_calendar_portal) {
+ group = std::make_shared<LayoutItem_CalendarPortal>();
} else if(layout_notebook) {
group = std::make_shared<LayoutItem_Notebook>();
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]