[glom] Print Layout Window: default to 100% size



commit d80fda10146a04824139027b1ca9c766ad0c4a68
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Aug 5 19:19:14 2011 +0200

    Print Layout Window: default to 100% size
    
    * glom/mode_design/print_layouts/window_print_layout_edit.cc: init_menu():
    Default to 100% instead of fit-to-width, because this seems to give a
    better idea that it is a page, by being more like applications such as
    OpenOffice/LibreOffice write.

 ChangeLog                                          |    9 +++++++++
 .../print_layouts/window_print_layout_edit.cc      |    9 +++++++--
 2 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1aea078..dbc2b8b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2011-08-05  Murray Cumming  <murrayc murrayc com>
 
+	Print Layout Window: default to 100% size
+
+	* glom/mode_design/print_layouts/window_print_layout_edit.cc: init_menu():
+	Default to 100% instead of fit-to-width, because this seems to give a 
+	better idea that it is a page, by being more like applications such as 
+	OpenOffice/LibreOffice write.
+
+2011-08-05  Murray Cumming  <murrayc murrayc com>
+
 	Print Layout Window: Make the top widgets more compact.
 
 	* ui/developer/window_print_layout_edit.glade:
diff --git a/glom/mode_design/print_layouts/window_print_layout_edit.cc b/glom/mode_design/print_layouts/window_print_layout_edit.cc
index 366dec3..a30e04b 100644
--- a/glom/mode_design/print_layouts/window_print_layout_edit.cc
+++ b/glom/mode_design/print_layouts/window_print_layout_edit.cc
@@ -167,19 +167,24 @@ void Window_PrintLayout_Edit::init_menu()
   m_action_zoom_fit_page_width = Gtk::RadioAction::create(group_zoom, "Action_Menu_View_ZoomFitPageWidth", _("Fit Page _Width"));
   m_action_group->add(m_action_zoom_fit_page_width,
     sigc::mem_fun(*this, &Window_PrintLayout_Edit::on_menu_view_fitpagewidth));
+
   m_action_group->add(Gtk::RadioAction::create(group_zoom, "Action_Menu_View_Zoom200", _("Zoom 200%")),
     sigc::bind( sigc::mem_fun(*this, &Window_PrintLayout_Edit::on_menu_view_zoom), 200));
-  m_action_group->add(Gtk::RadioAction::create(group_zoom, "Action_Menu_View_Zoom100", Gtk::Stock::ZOOM_100),
+
+  Glib::RefPtr<Gtk::RadioAction> action_zoom100 = 
+    Gtk::RadioAction::create(group_zoom, "Action_Menu_View_Zoom100", Gtk::Stock::ZOOM_100);
+  m_action_group->add(action_zoom100,
     sigc::bind( sigc::mem_fun(*this, &Window_PrintLayout_Edit::on_menu_view_zoom), 100));
 
   Glib::RefPtr<Gtk::Action> action_50 = Gtk::RadioAction::create(group_zoom, "Action_Menu_View_Zoom50", _("Zoom 50%"));
   m_action_group->add(action_50,
     sigc::bind( sigc::mem_fun(*this, &Window_PrintLayout_Edit::on_menu_view_zoom), 50));
-  m_action_zoom_fit_page_width->activate();
 
   m_action_group->add(Gtk::RadioAction::create(group_zoom, "Action_Menu_View_Zoom25", _("Zoom 25%")),
     sigc::bind( sigc::mem_fun(*this, &Window_PrintLayout_Edit::on_menu_view_zoom), 25));
 
+  action_zoom100->activate(); //This seems like a sane default.
+
   //Build part of the menu structure, to be merged in by using the "PH" placeholders:
   static const Glib::ustring ui_description =
     "<ui>"



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