[gnome-packagekit] gpk-app:Use pk_task* instead pk_client* while searching



commit ce65788696311cbedca23d050bb2377d2e345aaf
Author: Zhang Qiang <qiang z zhang intel com>
Date:   Thu Apr 7 11:06:55 2011 +0800

    gpk-app:Use pk_task* instead pk_client* while searching
    
    pk_task* level contains more interaction interface, and this patch use
    pk_task* instead pk_client* while searching to show more information,
    such as asking user to accept signature.
    
    without this patch, the search operation fails without any error info
    if the repo signature is fail
    
    Signed-off-by: Richard Hughes <richard hughsie com>

 src/gpk-application.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gpk-application.c b/src/gpk-application.c
index 4170287..c4c5647 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -1612,19 +1612,19 @@ gpk_application_perform_search_name_details_file (gpointer user_data)
 	/* do the search */
 	searches = g_strsplit (search_text, " ", -1);
 	if (search_type == GPK_SEARCH_NAME) {
-		pk_client_search_names_async (PK_CLIENT(task),
+		pk_task_search_names_async (task,
 					     filters_current,
 					     searches, cancellable,
 					     (PkProgressCallback) gpk_application_progress_cb, NULL,
 					     (GAsyncReadyCallback) gpk_application_search_cb, NULL);
 	} else if (search_type == GPK_SEARCH_DETAILS) {
-		pk_client_search_details_async (PK_CLIENT(task),
+		pk_task_search_details_async (task,
 					     filters_current,
 					     searches, cancellable,
 					     (PkProgressCallback) gpk_application_progress_cb, NULL,
 					     (GAsyncReadyCallback) gpk_application_search_cb, NULL);
 	} else if (search_type == GPK_SEARCH_FILE) {
-		pk_client_search_files_async (PK_CLIENT(task),
+		pk_task_search_files_async (task,
 					     filters_current,
 					     searches, cancellable,
 					     (PkProgressCallback) gpk_application_progress_cb, NULL,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]