From 39dd68c577930ea397ff80477b4ad50b7989a8d3 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 3 Feb 2021 12:58:10 +0100 Subject: applets: Do not build the path to the menu files --- applets/inhibit/inhibit-applet.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'applets/inhibit') diff --git a/applets/inhibit/inhibit-applet.c b/applets/inhibit/inhibit-applet.c index 849ff7c..8daf645 100644 --- a/applets/inhibit/inhibit-applet.c +++ b/applets/inhibit/inhibit-applet.c @@ -497,7 +497,6 @@ gpm_applet_cb (MatePanelApplet *_applet, const gchar *iid, gpointer data) { GpmInhibitApplet *applet = GPM_INHIBIT_APPLET(_applet); GtkActionGroup *action_group; - gchar *ui_path; static const GtkActionEntry menu_actions [] = { { "About", "help-about", N_("_About"), @@ -518,9 +517,9 @@ gpm_applet_cb (MatePanelApplet *_applet, const gchar *iid, gpointer data) menu_actions, G_N_ELEMENTS (menu_actions), applet); - ui_path = g_build_filename (INHIBIT_MENU_UI_DIR, "inhibit-applet-menu.xml", NULL); - mate_panel_applet_setup_menu_from_file (MATE_PANEL_APPLET (applet), ui_path, action_group); - g_free (ui_path); + mate_panel_applet_setup_menu_from_file (MATE_PANEL_APPLET (applet), + INHIBIT_MENU_UI_DIR "/inhibit-applet-menu.xml", + action_group); g_object_unref (action_group); return TRUE; -- cgit v1.2.1