diff options
author | rbuj <[email protected]> | 2020-07-20 16:16:40 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-08-30 11:02:14 +0200 |
commit | 38158f29de9a72124018848999abef27c68c2675 (patch) | |
tree | 470ef4b29d130e2ca3d8789b38ef4cddf5f67a26 /drivemount/drivemount.c | |
parent | b4bb016cbce9f02ee8fe0436c53f28a1ba4b0d4a (diff) | |
download | mate-applets-38158f29de9a72124018848999abef27c68c2675.tar.bz2 mate-applets-38158f29de9a72124018848999abef27c68c2675.tar.xz |
drivemount: Load menu from resources
Diffstat (limited to 'drivemount/drivemount.c')
-rw-r--r-- | drivemount/drivemount.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivemount/drivemount.c b/drivemount/drivemount.c index 84d6f77f..450bce32 100644 --- a/drivemount/drivemount.c +++ b/drivemount/drivemount.c @@ -179,7 +179,6 @@ applet_factory (MatePanelApplet *applet, GtkWidget *drive_list; AtkObject *ao; GtkActionGroup *action_group; - gchar *ui_path; if (!strcmp (iid, drivemount_iid)) { g_set_application_name (_("Disk Mounter")); @@ -211,9 +210,9 @@ applet_factory (MatePanelApplet *applet, applet_menu_actions, G_N_ELEMENTS (applet_menu_actions), drive_list); - ui_path = g_build_filename (DRIVEMOUNT_MENU_UI_DIR, "drivemount-applet-menu.xml", NULL); - mate_panel_applet_setup_menu_from_file (applet, ui_path, action_group); - g_free (ui_path); + mate_panel_applet_setup_menu_from_resource (applet, + DRIVEMOUNT_RESOURCE_PATH "drivemount-applet-menu.xml", + action_group); g_object_unref (action_group); ao = gtk_widget_get_accessible (GTK_WIDGET (applet)); |