summaryrefslogtreecommitdiff
path: root/stickynotes/stickynotes_applet.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-02 11:09:10 +0100
committerraveit65 <[email protected]>2020-12-13 15:40:05 +0100
commit3cf85cb5229c3e87fed2f926004fed724e94e8cb (patch)
tree3f5e8cebdc969d7ebd687c4ed508fde54cd2a4d6 /stickynotes/stickynotes_applet.c
parentc4499405e511d94005c58cf64489199cbb9e5a86 (diff)
downloadmate-applets-3cf85cb5229c3e87fed2f926004fed724e94e8cb.tar.bz2
mate-applets-3cf85cb5229c3e87fed2f926004fed724e94e8cb.tar.xz
stickynotes: Add stickynotes-applet-menu.xml into resource bundle
Diffstat (limited to 'stickynotes/stickynotes_applet.c')
-rw-r--r--stickynotes/stickynotes_applet.c7
1 files changed, 3 insertions, 4 deletions
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;