[glom/gmenu] gmenu: Relationships Overview: Fix Show Grid
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/gmenu] gmenu: Relationships Overview: Fix Show Grid
- Date: Mon, 23 Sep 2013 20:23:53 +0000 (UTC)
commit b0d40340d0d39d5bcdffdd1d0a12ad50243f17b7
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Sep 23 22:23:38 2013 +0200
gmenu: Relationships Overview: Fix Show Grid
.../dialog_relationships_overview.cc | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/glom/mode_design/relationships_overview/dialog_relationships_overview.cc
b/glom/mode_design/relationships_overview/dialog_relationships_overview.cc
index 4827ab3..7914e81 100644
--- a/glom/mode_design/relationships_overview/dialog_relationships_overview.cc
+++ b/glom/mode_design/relationships_overview/dialog_relationships_overview.cc
@@ -350,6 +350,11 @@ void Dialog_RelationshipsOverview::on_menu_view_showgrid(const Glib::VariantBase
{
bool showgrid = false;
m_action_showgrid->get_state(showgrid);
+
+ //Change the state, because this doesn't happen automatically:
+ showgrid = !showgrid;
+ m_action_showgrid->change_state(showgrid);
+
if(showgrid)
{
m_canvas.set_grid_gap(40);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]