[glom/maemo5] Maemo: Allow editing of hidden tables (only) via its details window.
- From: Murray Cumming <murrayc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glom/maemo5] Maemo: Allow editing of hidden tables (only) via its details window.
- Date: Mon, 5 Oct 2009 19:02:31 +0000 (UTC)
commit 05ea22ee07d99df76c5d660d05c4cfcab7120ad2
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Oct 5 21:02:22 2009 +0200
Maemo: Allow editing of hidden tables (only) via its details window.
* glom/mode_data/box_data_list_related.cc: enable_buttons(): Add a maemo
ifdef around m_AddDel.set_allow_view_details().
ChangeLog | 7 +++++++
glom/mode_data/box_data_list_related.cc | 6 +++++-
2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 15f3026..5494e6e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2009-10-05 Murray Cumming <murrayc murrayc com>
+ Maemo: Allow editing of hidden tables (only) via its details window.
+
+ * glom/mode_data/box_data_list_related.cc: enable_buttons(): Add a maemo
+ ifdef around m_AddDel.set_allow_view_details().
+
+2009-10-05 Murray Cumming <murrayc murrayc com>
+
Maemo: List: Use only 2 columns by default, so some have enough space.
* glom/libglom/document/document.cc: get_data_layout_groups_plus_new_fields():
diff --git a/glom/mode_data/box_data_list_related.cc b/glom/mode_data/box_data_list_related.cc
index c1c0c06..c17ae75 100644
--- a/glom/mode_data/box_data_list_related.cc
+++ b/glom/mode_data/box_data_list_related.cc
@@ -60,7 +60,11 @@ void Box_Data_List_Related::enable_buttons()
get_has_suitable_record_to_view_details() &&
(m_portal->get_navigation_type() != LayoutItem_Portal::NAVIGATION_NONE);
- m_AddDel.set_allow_view_details(view_details_possible); //Don't allow the user to go to a record in a hidden table.
+ #ifndef GLOM_ENABLE_MAEMO
+ // Don't allow the user to go to a record in a hidden table.
+ // Unless we are on Maemo - then we want to allow editing in a separate window only.
+ m_AddDel.set_allow_view_details(view_details_possible);
+ #endif //GLOM_ENABLE_MAEMO
}
bool Box_Data_List_Related::init_db_details(const sharedptr<const LayoutItem_Portal>& portal, bool show_title)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]