diff options
author | raveit65 <[email protected]> | 2018-04-22 17:18:54 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-04-26 13:01:37 +0200 |
commit | fb3abe3bc1cf858638867a2b92c53c5caf8e060f (patch) | |
tree | bc52b33df8073e8280e3eed4ccfb53e0f6e85710 /applets/notification_area/main.c | |
parent | e1db0723dfba93d36d36b3b4e4327e9965aa90d4 (diff) | |
download | mate-panel-fb3abe3bc1cf858638867a2b92c53c5caf8e060f.tar.bz2 mate-panel-fb3abe3bc1cf858638867a2b92c53c5caf8e060f.tar.xz |
na-tray: Convert to GResource
Diffstat (limited to 'applets/notification_area/main.c')
-rw-r--r-- | applets/notification_area/main.c | 7 |
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); } |