summaryrefslogtreecommitdiff
path: root/applets/notification_area/main.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-04-22 17:18:54 +0200
committerraveit65 <[email protected]>2018-04-26 13:05:34 +0200
commit9ee6deb9c12ebeb39337f228aa62abbb68ca5a38 (patch)
treeea2bd9855b087e3c403d59ad9f5363be17ddc2e4 /applets/notification_area/main.c
parentff613c4f6a3a33c21cacc885116cacf87ef4bf03 (diff)
downloadmate-panel-9ee6deb9c12ebeb39337f228aa62abbb68ca5a38.tar.bz2
mate-panel-9ee6deb9c12ebeb39337f228aa62abbb68ca5a38.tar.xz
na-tray: Convert to GResource
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);
}