static char * panel_layout_get_default_layout_file (void) { char *user_file; user_file = panel_util_get_from_personal_path (PANEL_LAYOUT_DEFAULT_LAYOUT_FILE); if (g_file_test (user_file, G_FILE_TEST_IS_REGULAR)) return user_file; g_free (user_file); return g_build_filename (PANELDATADIR, PANEL_LAYOUT_DEFAULT_LAYOUT_FILE, NULL); }
static char * panel_launcher_get_personal_path (void) { return panel_util_get_from_personal_path ("launchers"); }