Code

In the document properties dialog, changes tab order to units, width, height. (Bug...
authorAlex Leone <acleone~AT~gmail.com>
Tue, 1 Jun 2010 03:30:52 +0000 (20:30 -0700)
committerAlex Leone <acleone~AT~gmail.com>
Tue, 1 Jun 2010 03:30:52 +0000 (20:30 -0700)
src/ui/widget/page-sizer.cpp
src/ui/widget/page-sizer.h

index 05de86308fc666ac3449af601b15339fa8638345..e2be98664b94f42af389c42a19c6b1afc2d339e8 100644 (file)
@@ -311,9 +311,17 @@ PageSizer::PageSizer(Registry & _wr)
     _customDimTable.attach(_dimensionHeight,       0,1, 1,2);
     _customDimTable.attach(_fitPageMarginExpander, 0,2, 2,3);
     
+    _dimTabOrderGList = NULL;
+    _dimTabOrderGList = g_list_append(_dimTabOrderGList, _dimensionUnits.gobj());
+    _dimTabOrderGList = g_list_append(_dimTabOrderGList, _dimensionWidth.gobj());
+    _dimTabOrderGList = g_list_append(_dimTabOrderGList, _dimensionHeight.gobj());
+    _dimTabOrderGList = g_list_append(_dimTabOrderGList, _fitPageMarginExpander.gobj());
+    Glib::ListHandle<Widget *> dimFocusChain(_dimTabOrderGList, Glib::OWNERSHIP_NONE);
+    _customDimTable.set_focus_chain(dimFocusChain);    
+
     //## Set up fit page expander
-    _fitPageMarginExpander.set_label(_("Resi_ze page to content..."));
     _fitPageMarginExpander.set_use_underline();
+    _fitPageMarginExpander.set_label(_("Resi_ze page to content..."));
     _fitPageMarginExpander.add(_marginTable);
     
     //## Set up margin settings
@@ -350,6 +358,7 @@ PageSizer::PageSizer(Registry & _wr)
  */
 PageSizer::~PageSizer()
 {
+    g_list_free(_dimTabOrderGList);
 }
 
 
index 7c20485345c2968166e794a3a257dbcc6175269a..ba6c8dd13fa584478c5c52fe8361edaf58428245 100644 (file)
@@ -203,6 +203,7 @@ protected:
     RegisteredUnitMenu   _dimensionUnits;
     RegisteredScalarUnit _dimensionWidth;
     RegisteredScalarUnit _dimensionHeight;
+    GList *              _dimTabOrderGList;
 
     //### Fit Page options
     Gtk::Expander        _fitPageMarginExpander;