2013/1/8 Yu Chen <[email protected]>
>
> On my terms_rework_2 branch, I found an other annoying issue regarding
> Layers and Sets Panels which didn't appear in stable version:
>
> 1) Add a layer to a Set by using rightclick menu on a layer "Add Layers to
> Set"
> 2) The Set Panel will popup (activated),
> 3) Goback to Layers Panel by clicking Layers panel icon
> 4) Select the layer as step 1,
> 5) Group by clicking the "Group Layer" button on Layers panel toolbar, now
> annoying thing happened:
> 6) The Set Panel popup instead of staying Layer Panel as expected.
>
> I still don't figure out why it happen at the moment.
>
>
> The problem comes because other string has been renamed when it shouldn't.
This is the patch to fix it:
diff --git a/synfig-studio/src/gui/docks/dock_layers.cpp
b/synfig-studio/src/gui/docks/dock_layers.cpp
index 663fd4f..a626680 100644
--- a/synfig-studio/src/gui/docks/dock_layers.cpp
+++ b/synfig-studio/src/gui/docks/dock_layers.cpp
@@ -152,7 +152,7 @@ Dock_Layers::Dock_Layers():
" <toolitem action='action-LayerLower' />"
" <separator />"
" <toolitem action='action-LayerDuplicate' />"
- " <toolitem action='action-LayerGroup' />"
+ " <toolitem action='action-LayerEncapsulate' />"
" <toolitem action='select-all-child-layers' />"
" <toolitem action='action-LayerRemove' />"
" <separator />"
diff --git a/synfig-studio/src/synfigapp/actions/layerencapsulate.cpp
b/synfig-studio/src/synfigapp/actions/layerencapsulate.cpp
index a834371..c57506c 100644
--- a/synfig-studio/src/synfigapp/actions/layerencapsulate.cpp
+++ b/synfig-studio/src/synfigapp/actions/layerencapsulate.cpp
@@ -48,7 +48,7 @@ using namespace Action;
/* === M A C R O S
========================================================= */
ACTION_INIT_NO_GET_LOCAL_NAME(Action::LayerEncapsulate);
-ACTION_SET_NAME(Action::LayerEncapsulate,"LayerGroup");
+ACTION_SET_NAME(Action::LayerEncapsulate,"LayerEncapsulate");
ACTION_SET_LOCAL_NAME(Action::LayerEncapsulate,N_("Group Layer"));
ACTION_SET_TASK(Action::LayerEncapsulate,"encapsulate");
ACTION_SET_CATEGORY(Action::LayerEncapsulate,Action::CATEGORY_LAYER);
Please checkout that there are not more action names renamed. They are just
part of the internals of Synfig and doesn't affect to the user interface.
Cheers!
> Cheers!
> ~yu
>
>
>
> ------------------------------------------------------------------------------
> Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
> and more. Get SQL Server skills now (including 2012) with LearnDevNow -
> 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
> SALE $99.99 this month only - learn more at:
> http://p.sf.net/sfu/learnmore_122512
> _______________________________________________
> Synfig-devl mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/synfig-devl
>
>
--
Carlos
http://synfig.org
------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl