summaryrefslogtreecommitdiff
path: root/mate-window-picker-applet/applet.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-02-03 13:06:08 +0100
committerraveit65 <[email protected]>2021-04-25 11:45:44 +0200
commitbbced50310a2b1b8d5d78428a2668d127715651f (patch)
treea34cbe78cda8af007251800651a7e9fd740ff51e /mate-window-picker-applet/applet.c
parentd3868c6f4968340cbca6f4a17a76aa17cefe5b79 (diff)
downloadmate-netbook-bbced50310a2b1b8d5d78428a2668d127715651f.tar.bz2
mate-netbook-bbced50310a2b1b8d5d78428a2668d127715651f.tar.xz
mate-window-picker-applet: Do not build the path to the menu file
Diffstat (limited to 'mate-window-picker-applet/applet.c')
-rw-r--r--mate-window-picker-applet/applet.c6
1 files 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),