From bbced50310a2b1b8d5d78428a2668d127715651f Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 3 Feb 2021 13:06:08 +0100 Subject: mate-window-picker-applet: Do not build the path to the menu file --- mate-window-picker-applet/applet.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mate-window-picker-applet/applet.c b/mate-window-picker-applet/applet.c index 4f22b78..b09bc59 100644 --- a/mate-window-picker-applet/applet.c +++ b/mate-window-picker-applet/applet.c @@ -155,7 +155,6 @@ cw_applet_fill (MatePanelApplet *applet, { WinPickerApp *app; GtkWidget *eb, *tasks, *title; - gchar *ui_path; GtkActionGroup *action_group; GObjectClass *object_class; @@ -213,10 +212,9 @@ cw_applet_fill (MatePanelApplet *applet, window_picker_menu_actions, G_N_ELEMENTS (window_picker_menu_actions), app); - ui_path = g_build_filename (MATEWINDOWPICKER_MENU_UI_DIR, "mate-window-picker-applet-menu.xml", NULL); mate_panel_applet_setup_menu_from_file (MATE_PANEL_APPLET (app->applet), - ui_path, action_group); - g_free (ui_path); + MATEWINDOWPICKER_MENU_UI_DIR "/mate-window-picker-applet-menu.xml", + action_group); g_object_unref (action_group); mate_panel_applet_set_flags (MATE_PANEL_APPLET (applet), -- cgit v1.2.1