[glom/maemo5] Comment out some save_to_document()
- From: Murray Cumming <murrayc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glom/maemo5] Comment out some save_to_document()
- Date: Mon, 7 Sep 2009 10:33:47 +0000 (UTC)
commit ec1cca7584ad54a34f542695a132fa9d2b8ffa9c
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Sep 7 12:33:39 2009 +0200
Comment out some save_to_document()
methods in client-only mode.
ChangeLog | 6 ++++++
glom/box_reports.cc | 2 ++
glom/box_reports.h | 2 ++
glom/navigation/box_tables.cc | 2 ++
glom/navigation/box_tables.h | 4 ++--
5 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ff30a57..2378c8c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2009-09-07 Murray Cumming <murrayc murrayc com>
+ * glom/box_reports.[h|cc]:
+ * glom/navigation/box_tables.[h|cc]: Comment out some save_to_document()
+ methods in client-only mode.
+
+2009-09-07 Murray Cumming <murrayc murrayc com>
+
* glom/application.cc:
* glom/frame_glom.cc: Fix tiny typos to fix the non-maemo build.
diff --git a/glom/box_reports.cc b/glom/box_reports.cc
index c0484f3..0d6bada 100644
--- a/glom/box_reports.cc
+++ b/glom/box_reports.cc
@@ -171,6 +171,7 @@ void Box_Reports::on_adddel_Edit(const Gtk::TreeModel::iterator& row)
}
}
+#ifndef GLOM_ENABLE_CLIENT_ONLY
void Box_Reports::save_to_document()
{
if(get_userlevel() == AppState::USERLEVEL_DEVELOPER)
@@ -199,6 +200,7 @@ void Box_Reports::save_to_document()
get_document()->set_modified(true);
}
}
+#endif GLOM_ENABLE_CLIENT_ONLY
void Box_Reports::on_adddel_changed(const Gtk::TreeModel::iterator& row, guint column)
{
diff --git a/glom/box_reports.h b/glom/box_reports.h
index b29e9de..aab474c 100644
--- a/glom/box_reports.h
+++ b/glom/box_reports.h
@@ -38,7 +38,9 @@ private:
virtual void fill_row(const Gtk::TreeModel::iterator& iter, const sharedptr<const Report>& report);
+#ifndef GLOM_ENABLE_CLIENT_ONLY
virtual void save_to_document();
+#endif
//Signal handlers:
virtual void on_adddel_Add(const Gtk::TreeModel::iterator& row);
diff --git a/glom/navigation/box_tables.cc b/glom/navigation/box_tables.cc
index 54ef6d7..46c6a6c 100644
--- a/glom/navigation/box_tables.cc
+++ b/glom/navigation/box_tables.cc
@@ -431,6 +431,7 @@ void Box_Tables::on_adddel_Edit(const Gtk::TreeModel::iterator& row)
}
}
+#ifndef GLOM_ENABLE_CLIENT_ONLY
void Box_Tables::save_to_document()
{
if(get_userlevel() == AppState::USERLEVEL_DEVELOPER)
@@ -464,6 +465,7 @@ void Box_Tables::save_to_document()
document->set_tables(listTables); //TODO: Don't save all new tables - just the ones already in the document.
}
}
+#endif //GLOM_ENABLE_CLIENT_ONLY
void Box_Tables::on_show_hidden_toggled()
{
diff --git a/glom/navigation/box_tables.h b/glom/navigation/box_tables.h
index d605bc7..1035546 100644
--- a/glom/navigation/box_tables.h
+++ b/glom/navigation/box_tables.h
@@ -46,10 +46,10 @@ private:
virtual void fill_table_row(const Gtk::TreeModel::iterator& iter, const sharedptr<const TableInfo>& table_info);
- virtual void save_to_document();
-
//Signal handlers:
#ifndef GLOM_ENABLE_CLIENT_ONLY
+ virtual void save_to_document();
+
void on_adddel_Add(const Gtk::TreeModel::iterator& row);
void on_adddel_Delete(const Gtk::TreeModel::iterator& rowStart, const Gtk::TreeModel::iterator& rowEnd);
void on_adddel_changed(const Gtk::TreeModel::iterator& row, guint column);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]