[Xfce4-commits] [apps/xfdashboard] 01/01: If I say that setting "initial-results-size" to zero means to show all result items by default, it should behave so.
noreply at xfce.org
noreply at xfce.org
Sun Jan 10 12:45:41 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 8a454b55d49ed4cab4a33ece23326601d1dd594f
Author: Stephan Haller <nomad at froevel.de>
Date: Sun Jan 10 12:45:13 2016 +0100
If I say that setting "initial-results-size" to zero means to show all result items by default, it should behave so.
---
xfdashboard/search-result-container.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/xfdashboard/search-result-container.c b/xfdashboard/search-result-container.c
index 21a75ac..4ee8b7a 100644
--- a/xfdashboard/search-result-container.c
+++ b/xfdashboard/search-result-container.c
@@ -521,7 +521,7 @@ static void _xfdashboard_search_result_container_set_provider(XfdashboardSearchR
}
/* Update result items in container */
-void _xfdashboard_search_result_container_update_result_items(XfdashboardSearchResultContainer *self, XfdashboardSearchResultSet *inResultSet, gboolean inShowAllItems)
+static void _xfdashboard_search_result_container_update_result_items(XfdashboardSearchResultContainer *self, XfdashboardSearchResultSet *inResultSet, gboolean inShowAllItems)
{
XfdashboardSearchResultContainerPrivate *priv;
GList *allList;
@@ -619,6 +619,11 @@ void _xfdashboard_search_result_container_update_result_items(XfdashboardSearchR
priv->maxResultsItemsCountSet=TRUE;
}
+ /* If maximum number of actors to show in items container is zero
+ * then all result items should be shown.
+ */
+ if(priv->maxResultsItemsCount<=0) inShowAllItems=TRUE;
+
/* Get current number of result actors and determine maximum number of
* actors to add to container.
*/
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list