mirror of
https://github.com/alexkay/spek.git
synced 2025-06-12 13:22:57 +03:00
Minor UI initialisation fixes
This commit is contained in:
parent
967e025ae5
commit
a058390b3f
@ -79,16 +79,15 @@ namespace Spek {
|
|||||||
destroy.connect (Gtk.main_quit);
|
destroy.connect (Gtk.main_quit);
|
||||||
|
|
||||||
var actions = new Gtk.ActionGroup ("Actions");
|
var actions = new Gtk.ActionGroup ("Actions");
|
||||||
|
actions.set_translation_domain (Config.GETTEXT_PACKAGE);
|
||||||
actions.add_actions (ACTION_ENTRIES, this);
|
actions.add_actions (ACTION_ENTRIES, this);
|
||||||
|
|
||||||
ui = new UIManager ();
|
ui = new UIManager ();
|
||||||
ui.insert_action_group (actions, 0);
|
ui.insert_action_group (actions, 0);
|
||||||
|
|
||||||
add_accel_group (ui.get_accel_group ());
|
add_accel_group (ui.get_accel_group ());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ui.add_ui_from_string (UI, -1);
|
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");
|
var menubar = ui.get_widget ("/MenuBar");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user