From a058390b3f2620a3154f604e180fcd7d13d6d540 Mon Sep 17 00:00:00 2001 From: Alexander Kojevnikov Date: Tue, 19 Apr 2011 19:14:43 +0800 Subject: [PATCH] Minor UI initialisation fixes --- src/spek-window.vala | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/spek-window.vala b/src/spek-window.vala index 344c481..edb41a6 100644 --- a/src/spek-window.vala +++ b/src/spek-window.vala @@ -79,16 +79,15 @@ namespace Spek { destroy.connect (Gtk.main_quit); var actions = new Gtk.ActionGroup ("Actions"); + actions.set_translation_domain (Config.GETTEXT_PACKAGE); actions.add_actions (ACTION_ENTRIES, this); - ui = new UIManager (); ui.insert_action_group (actions, 0); - add_accel_group (ui.get_accel_group ()); - try { ui.add_ui_from_string (UI, -1); - } catch { + } catch (Error e) { + warning ("Could not load the UI: %s\n", e.message); } var menubar = ui.get_widget ("/MenuBar");