From 3cf85cb5229c3e87fed2f926004fed724e94e8cb Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 2 Dec 2020 11:09:10 +0100 Subject: stickynotes: Add stickynotes-applet-menu.xml into resource bundle --- stickynotes/stickynotes_applet.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'stickynotes/stickynotes_applet.c') diff --git a/stickynotes/stickynotes_applet.c b/stickynotes/stickynotes_applet.c index c8453c88..9cc5ebdf 100644 --- a/stickynotes/stickynotes_applet.c +++ b/stickynotes/stickynotes_applet.c @@ -340,7 +340,6 @@ StickyNotesApplet * stickynotes_applet_new(MatePanelApplet *mate_panel_applet) { AtkObject *atk_obj; - gchar *ui_path; /* Create Sticky Notes Applet */ StickyNotesApplet *applet = g_new(StickyNotesApplet, 1); @@ -373,9 +372,9 @@ stickynotes_applet_new(MatePanelApplet *mate_panel_applet) stickynotes_applet_menu_toggle_actions, G_N_ELEMENTS (stickynotes_applet_menu_toggle_actions), applet); - ui_path = g_build_filename (STICKYNOTES_MENU_UI_DIR, "stickynotes-applet-menu.xml", NULL); - mate_panel_applet_setup_menu_from_file(mate_panel_applet, ui_path, applet->action_group); - g_free (ui_path); + mate_panel_applet_setup_menu_from_resource (mate_panel_applet, + GRESOURCE "menu.xml", + applet->action_group); if (mate_panel_applet_get_locked_down (mate_panel_applet)) { GtkAction *action; -- cgit v1.2.1