aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/menu.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-03 01:19:25 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-03 01:19:25 +0000
commit5adc8bdbb1471821f912becbba86e4631a4a001a (patch)
treefb0dabc347ab5050c13a9da4a1519eef752110ad /hardinfo2/menu.c
parentbe4b5ba0d143edd1001f33d226e10ef2c58f42ff (diff)
Cleanups. Implement DEBUG() macro.
Diffstat (limited to 'hardinfo2/menu.c')
-rw-r--r--hardinfo2/menu.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/hardinfo2/menu.c b/hardinfo2/menu.c
index 250cfa10..cbd59431 100644
--- a/hardinfo2/menu.c
+++ b/hardinfo2/menu.c
@@ -103,7 +103,6 @@ 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;
GtkAccelGroup *accel_group;
/* Create our objects */
@@ -126,9 +125,7 @@ void menu_init(Shell *shell)
/* Read in the UI from our XML file */
error = NULL;
- uidefs_path = g_build_filename(params.path_data, "uidefs.xml", NULL);
- gtk_ui_manager_add_ui_from_file(menu_manager, uidefs_path, &error);
- g_free(uidefs_path);
+ gtk_ui_manager_add_ui_from_file(menu_manager, idle_free(g_build_filename(params.path_data, "uidefs.xml", NULL)), &error);
if (error) {
g_error("Building menus failed: %s", error->message);