glom r1676 - in trunk: . glom



Author: jhs
Date: Thu Aug 28 15:16:16 2008
New Revision: 1676
URL: http://svn.gnome.org/viewvc/glom?rev=1676&view=rev

Log:
2008-08-28  Johannes Schmid  <johannes schmid openismus com>

	* glom/application.cc:
	Remeber state of layout toolbar when switching modes

Modified:
   trunk/ChangeLog
   trunk/glom/application.cc

Modified: trunk/glom/application.cc
==============================================================================
--- trunk/glom/application.cc	(original)
+++ trunk/glom/application.cc	Thu Aug 28 15:16:16 2008
@@ -569,13 +569,16 @@
     m_pFrame->on_menu_userlevel_Developer(m_action_menu_userlevel_developer, m_action_menu_userlevel_operator);
   Glib::RefPtr<Gtk::ToggleAction> action = Glib::RefPtr<Gtk::ToggleAction>::cast_dynamic(
     m_refActionGroup_Others->get_action ("GlomAction_Menu_Developer_ShowLayoutToolbar"));
-  action->set_active(false);
+  m_pFrame->show_layout_toolbar(action->get_active());
 }
 
 void App_Glom::on_menu_userlevel_operator()
 {
   if(m_pFrame)
+  {
     m_pFrame->on_menu_userlevel_Operator(m_action_menu_userlevel_operator);
+    m_pFrame->show_layout_toolbar(false);
+  }
 }
 #endif // !GLOM_ENABLE_CLIENT_ONLY
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]