summaryrefslogtreecommitdiff
path: root/applets/notification_area/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'applets/notification_area/main.c')
-rw-r--r--applets/notification_area/main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/applets/notification_area/main.c b/applets/notification_area/main.c
index 069a74b3..f656d029 100644
--- a/applets/notification_area/main.c
+++ b/applets/notification_area/main.c
@@ -196,13 +196,12 @@ na_tray_applet_realize (GtkWidget *widget)
parent_class_realize (widget);
GtkActionGroup* action_group;
- gchar* ui_path;
action_group = gtk_action_group_new("NA Applet Menu Actions");
gtk_action_group_set_translation_domain(action_group, GETTEXT_PACKAGE);
gtk_action_group_add_actions(action_group, menu_actions, G_N_ELEMENTS(menu_actions), applet);
- ui_path = g_build_filename(NOTIFICATION_AREA_MENU_UI_DIR, "notification-area-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_resource (MATE_PANEL_APPLET (applet),
+ NA_RESOURCE_PATH "notification-area-menu.xml",
+ action_group);
g_object_unref(action_group);
}