[Xfce4-commits] [apps/xfdashboard] 01/02: Introduce a new CSS class which will be added to XfdashboardSearchResultContainer. The CSS class name is build with a prefix "search-provider-id-" followed by the search provider's ID (like "applications" for XfdashboardApplicationsSearchProvider used by applications search provider) - so the complete CSS class name would be ".search-provider-id-applications" (for use in CSS) in this case.

noreply at xfce.org noreply at xfce.org
Thu Oct 15 21:14:10 CEST 2015


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

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

commit 084be1d506d27c45958601bae515e70f43319910
Author: Stephan Haller <nomad at froevel.de>
Date:   Thu Oct 15 21:11:36 2015 +0200

    Introduce a new CSS class which will be added to XfdashboardSearchResultContainer. The CSS class name is build with a prefix "search-provider-id-" followed by the search provider's ID (like "applications" for XfdashboardApplicationsSearchProvider used by applications search provider) - so the complete CSS class name would be ".search-provider-id-applications" (for use in CSS) in this case.
---
 xfdashboard/search-result-container.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/xfdashboard/search-result-container.c b/xfdashboard/search-result-container.c
index 25c48d0..2148527 100644
--- a/xfdashboard/search-result-container.c
+++ b/xfdashboard/search-result-container.c
@@ -260,6 +260,11 @@ static void _xfdashboard_search_result_container_set_provider(XfdashboardSearchR
 	xfdashboard_stylable_add_class(XFDASHBOARD_STYLABLE(self), styleClass);
 	g_free(styleClass);
 
+	/* Set class name with ID of search provider for styling */
+	styleClass=g_strdup_printf("search-provider-id-%s", xfdashboard_search_provider_get_id(priv->provider));
+	xfdashboard_stylable_add_class(XFDASHBOARD_STYLABLE(self), styleClass);
+	g_free(styleClass);
+
 	/* Update icon */
 	_xfdashboard_search_result_container_update_icon(self);
 

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


More information about the Xfce4-commits mailing list