From: Alex Leone Date: Tue, 1 Jun 2010 03:30:52 +0000 (-0700) Subject: In the document properties dialog, changes tab order to units, width, height. (Bug... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9df3d269a87d35c9d90f57afb2c7e62e9867da65;p=inkscape.git In the document properties dialog, changes tab order to units, width, height. (Bug #587874) --- diff --git a/src/ui/widget/page-sizer.cpp b/src/ui/widget/page-sizer.cpp index 05de86308..e2be98664 100644 --- a/src/ui/widget/page-sizer.cpp +++ b/src/ui/widget/page-sizer.cpp @@ -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 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); } diff --git a/src/ui/widget/page-sizer.h b/src/ui/widget/page-sizer.h index 7c2048534..ba6c8dd13 100644 --- a/src/ui/widget/page-sizer.h +++ b/src/ui/widget/page-sizer.h @@ -203,6 +203,7 @@ protected: RegisteredUnitMenu _dimensionUnits; RegisteredScalarUnit _dimensionWidth; RegisteredScalarUnit _dimensionHeight; + GList * _dimTabOrderGList; //### Fit Page options Gtk::Expander _fitPageMarginExpander;