diff options
author | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 14:38:35 -0500 |
---|---|---|
committer | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 14:38:35 -0500 |
commit | 720f5023a8f68aaaa54cb6b7bf46efee23b5b4c3 (patch) | |
tree | 26a8d91183787418455f65c2bb44ed641800dad3 /menu.c | |
parent | 854292407779593a401a1d5ce71add51880fa84f (diff) |
Import Upstream version 0.4.1
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -24,6 +24,7 @@ #include <config.h> #include <stock.h> +#include <binreloc.h> #include <callbacks.h> @@ -57,10 +58,10 @@ static GtkActionEntry entries[] = static GtkToggleActionEntry toggle_entries[] = { - { "LeftPaneAction", NULL, - "_Left Pane", NULL, - "Toggles left pane visibility", - G_CALLBACK(cb_left_pane) }, + { "SidePaneAction", NULL, + "_Side Pane", NULL, + "Toggles side pane visibility", + G_CALLBACK(cb_side_pane) }, { "ToolbarAction", NULL, "_Toolbar", NULL, NULL, @@ -82,6 +83,7 @@ void menu_init(Shell *shell) GtkActionGroup *action_group; /* Packing group for our Actions */ GtkUIManager *menu_manager; /* The magic widget! */ GError *error; /* For reporting exceptions or errors */ + gchar *uidefs_path; /* Create our objects */ menu_box = shell->vbox; @@ -103,7 +105,10 @@ void menu_init(Shell *shell) /* Read in the UI from our XML file */ error = NULL; - gtk_ui_manager_add_ui_from_file(menu_manager, PREFIX "uidefs.xml", &error); + uidefs_path = g_strdup_printf("%s/hardinfo/uidefs.xml", + gbr_find_data_dir(PREFIX)); + gtk_ui_manager_add_ui_from_file(menu_manager, uidefs_path, &error); + g_free(uidefs_path); if (error) { g_error("building menus failed: %s", error->message); |