[Xfce4-commits] [apps/xfdashboard] 02/02: Build filename to statistics file in initialization and do not rely on utility functions anymore reverted with the commit before

noreply at xfce.org noreply at xfce.org
Sat Jan 23 13:10:17 CET 2016


This is an automated email from the git hooks/post-receive script.

nomad pushed a commit to branch master
in repository apps/xfdashboard.

commit 153c3d926f8b46a030982366abd0dc05804709ae
Author: Stephan Haller <nomad at froevel.de>
Date:   Sat Jan 23 13:09:34 2016 +0100

    Build filename to statistics file in initialization and do not rely on utility functions anymore reverted with the commit before
---
 xfdashboard/applications-search-provider.c |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/xfdashboard/applications-search-provider.c b/xfdashboard/applications-search-provider.c
index c57257b..2cc71d1 100644
--- a/xfdashboard/applications-search-provider.c
+++ b/xfdashboard/applications-search-provider.c
@@ -60,7 +60,7 @@ struct _XfdashboardApplicationsSearchProviderPrivate
 /* IMPLEMENTATION: Private variables and methods */
 #define DEFAULT_DELIMITERS														"\t\n\r "
 
-#define XFDASHBOARD_APPLICATIONS_SEARCH_PROVIDER_STATISTICS_FILE				"statistics"
+#define XFDASHBOARD_APPLICATIONS_SEARCH_PROVIDER_STATISTICS_FILE				"applications-search-provider-statistics.ini"
 #define XFDASHBOARD_APPLICATIONS_SEARCH_PROVIDER_STATISTICS_ENTRIES_GROUP		"Entries"
 #define XFDASHBOARD_APPLICATIONS_SEARCH_PROVIDER_STATISTICS_ENTRIES_COUNT		"Count"
 #define XFDASHBOARD_APPLICATIONS_SEARCH_PROVIDER_STATISTICS_LAUNCH_COUNT_GROUP	"Launch Counts"
@@ -322,7 +322,11 @@ static gboolean _xfdashboard_applications_search_provider_load_statistics(Xfdash
 	/* Get path to statistics file to load statistics from */
 	if(!_xfdashboard_applications_search_provider_statistics_filename)
 	{
-		_xfdashboard_applications_search_provider_statistics_filename=xfdashboard_get_data_path(self, XFDASHBOARD_APPLICATIONS_SEARCH_PROVIDER_STATISTICS_FILE);
+		_xfdashboard_applications_search_provider_statistics_filename=
+			g_build_filename(g_get_user_data_dir(),
+								"xfdashboard",
+								XFDASHBOARD_APPLICATIONS_SEARCH_PROVIDER_STATISTICS_FILE,
+								NULL);
 
 		if(!_xfdashboard_applications_search_provider_statistics_filename)
 		{
@@ -330,7 +334,7 @@ static gboolean _xfdashboard_applications_search_provider_load_statistics(Xfdash
 			g_set_error(outError,
 							G_IO_ERROR,
 							G_IO_ERROR_NOT_FOUND,
-							_("Could not get path to statistics file of applications search provider"));
+							_("Could not build path to statistics file of applications search provider"));
 
 			return(FALSE);
 		}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list