[glom] Print Layout: Do not show the rules when they should not be visible.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Print Layout: Do not show the rules when they should not be visible.
- Date: Thu, 11 Aug 2011 12:30:44 +0000 (UTC)
commit 851457a2a795deb5101bcea467d417e050b39dab
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Aug 11 14:30:33 2011 +0200
Print Layout: Do not show the rules when they should not be visible.
* glom/print_layout/canvas_print_layout.cc: set_print_layout():
Show the grid and rules as per the PrintLayout.
ChangeLog | 7 +++++++
glom/print_layout/canvas_print_layout.cc | 3 +++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 79a03de..5b68266 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2011-08-11 Murray Cumming <murrayc murrayc com>
+ Print Layout: Do not show the rules when they should not be visible.
+
+ * glom/print_layout/canvas_print_layout.cc: set_print_layout():
+ Show the grid and rules as per the PrintLayout.
+
+2011-08-11 Murray Cumming <murrayc murrayc com>
+
Print Layout: Prevent rule line dragging if rules are not shown.
* glom/mode_design/print_layouts/window_print_layout_edit.[h|cc]:
diff --git a/glom/print_layout/canvas_print_layout.cc b/glom/print_layout/canvas_print_layout.cc
index a9558dc..1b6bd91 100644
--- a/glom/print_layout/canvas_print_layout.cc
+++ b/glom/print_layout/canvas_print_layout.cc
@@ -109,6 +109,9 @@ void Canvas_PrintLayout::set_print_layout(const Glib::ustring& table_name, const
add_vertical_rule(*iter);
}
+ //TODO: This needs a number, but that is decided in WindowPrintLayoutEdit: set_grid_gap( print_layout->get_show_grid() );
+ set_rules_visibility( print_layout->get_show_rules() );
+ set_outlines_visibility( print_layout->get_show_outlines() );
m_modified = false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]