From 6bd801f5838b112a89ebdbc268629b7bf42ff740 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sat, 5 Jan 2008 11:50:03 +0000 Subject: [PATCH] =?utf8?q?Added=20code=20to=20catch=20an=20exception=20tha?= =?utf8?q?t=20is=20raised=20when=20we=20try=20using=20the=20Spanish=20tran?= =?utf8?q?slation=20of=20synfig-core=20(if=20there's=20an=20accented=20cha?= =?utf8?q?racter=20in=20any=20of=20the=20layer=20category=20names,=20as=20?= =?utf8?q?in=20"Geometry"=20->=20"Geometr=C3=ADa").?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.voria.com/code@1266 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/dock_layers.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/synfig-studio/trunk/src/gtkmm/dock_layers.cpp b/synfig-studio/trunk/src/gtkmm/dock_layers.cpp index 6cd19a1..1a6ec00 100644 --- a/synfig-studio/trunk/src/gtkmm/dock_layers.cpp +++ b/synfig-studio/trunk/src/gtkmm/dock_layers.cpp @@ -127,7 +127,17 @@ Dock_Layers::Dock_Layers(): App::ui_manager()->insert_action_group(action_group_categories); App::ui_manager()->insert_action_group(action_group_new_layers); - App::ui_manager()->add_ui_from_string(layer_ui_info); + + try + { + App::ui_manager()->add_ui_from_string(layer_ui_info); + } + catch(Glib::MarkupError x) + { + error("%s:%d caught MarkupError code %d: %s", __FILE__, __LINE__, x.code(), x.what().c_str()); + error("%s:%d with markup: \"%s\"", __FILE__, __LINE__, layer_ui_info.c_str()); + exit(1); + } } -- 2.7.4