[gnome-packagekit] Update the use of the glib2 API to git master



commit f198d0f6e82a8aa19a733a257134a2edb8131e3d
Author: Richard Hughes <richard hughsie com>
Date:   Fri Nov 20 13:14:31 2009 +0000

    Update the use of the glib2 API to git master

 configure.ac          |    2 +-
 src/gpk-application.c |    6 +++---
 src/gpk-dbus-task.c   |    8 ++++----
 src/gpk-firmware.c    |    2 +-
 4 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 85bbb85..4957c18 100644
--- a/configure.ac
+++ b/configure.ac
@@ -103,7 +103,7 @@ AM_GLIB_GNU_GETTEXT
 dnl ---------------------------------------------------------------------------
 dnl - Library dependencies
 dnl ---------------------------------------------------------------------------
-PACKAGEKIT_REQUIRED=0.5.4 # when changing, nuke some compatability entries in gpk-enum.h
+PACKAGEKIT_REQUIRED=0.5.5 # when changing, nuke some compatability entries in gpk-enum.h
 GLIB_REQUIRED=2.14.0
 GTK_REQUIRED=2.16.0
 DBUS_REQUIRED=1.1.2
diff --git a/src/gpk-application.c b/src/gpk-application.c
index c84da77..2b201ef 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -1643,7 +1643,7 @@ gpk_application_perform_search_name_details_file (GpkApplication *application)
 	/* do the search */
 	searches = g_strsplit (application->priv->search_text, " ", -1);
 	if (application->priv->search_type == PK_SEARCH_NAME) {
-		pk_client_search_name_async (PK_CLIENT(application->priv->task),
+		pk_client_search_names_async (PK_CLIENT(application->priv->task),
 					     application->priv->filters_current,
 					     searches, application->priv->cancellable,
 					     (PkProgressCallback) gpk_application_progress_cb, application,
@@ -1655,7 +1655,7 @@ gpk_application_perform_search_name_details_file (GpkApplication *application)
 					     (PkProgressCallback) gpk_application_progress_cb, application,
 					     (GAsyncReadyCallback) gpk_application_search_cb, application);
 	} else if (application->priv->search_type == PK_SEARCH_FILE) {
-		pk_client_search_file_async (PK_CLIENT(application->priv->task),
+		pk_client_search_files_async (PK_CLIENT(application->priv->task),
 					     application->priv->filters_current,
 					     searches, application->priv->cancellable,
 					     (PkProgressCallback) gpk_application_progress_cb, application,
@@ -1692,7 +1692,7 @@ gpk_application_perform_search_others (GpkApplication *application)
 
 	if (application->priv->search_mode == PK_MODE_GROUP) {
 		groups = g_strsplit (application->priv->group, " ", -1);
-		pk_client_search_group_async (PK_CLIENT(application->priv->task),
+		pk_client_search_groups_async (PK_CLIENT(application->priv->task),
 					      application->priv->filters_current, groups, application->priv->cancellable,
 					      (PkProgressCallback) gpk_application_progress_cb, application,
 					      (GAsyncReadyCallback) gpk_application_search_cb, application);
diff --git a/src/gpk-dbus-task.c b/src/gpk-dbus-task.c
index 2899bcf..ebc7e24 100644
--- a/src/gpk-dbus-task.c
+++ b/src/gpk-dbus-task.c
@@ -807,7 +807,7 @@ gpk_dbus_task_search_file (GpkDbusTask *dtask, const gchar *search_file)
 	/* get the package list for the installed packages */
 	egg_debug ("package_name=%s", search_file);
 	values = g_strsplit (search_file, "&", -1);
-	pk_client_search_file_async (PK_CLIENT(dtask->priv->task), pk_bitfield_value (PK_FILTER_ENUM_INSTALLED), values, NULL,
+	pk_client_search_files_async (PK_CLIENT(dtask->priv->task), pk_bitfield_value (PK_FILTER_ENUM_INSTALLED), values, NULL,
 				     (PkProgressCallback) gpk_dbus_task_progress_cb, dtask,
 				     (GAsyncReadyCallback) gpk_dbus_task_search_file_search_file_cb, dtask);
 	g_strfreev (values);
@@ -1292,7 +1292,7 @@ skip_checks:
 	gpk_modal_dialog_set_image_status (dtask->priv->dialog, PK_STATUS_ENUM_WAIT);
 
 	/* do search */
-	pk_client_search_file_async (PK_CLIENT(dtask->priv->task), pk_bitfield_from_enums (PK_FILTER_ENUM_ARCH, PK_FILTER_ENUM_NEWEST, -1), full_paths, NULL,
+	pk_client_search_files_async (PK_CLIENT(dtask->priv->task), pk_bitfield_from_enums (PK_FILTER_ENUM_ARCH, PK_FILTER_ENUM_NEWEST, -1), full_paths, NULL,
 			             (PkProgressCallback) gpk_dbus_task_progress_cb, dtask,
 				     (GAsyncReadyCallback) gpk_dbus_task_install_provide_files_search_file_cb, dtask);
 
@@ -2380,7 +2380,7 @@ skip_checks:
 	gpk_modal_dialog_set_image_status (dtask->priv->dialog, PK_STATUS_ENUM_WAIT);
 
 	/* do search */
-	pk_client_search_file_async (PK_CLIENT(dtask->priv->task), pk_bitfield_from_enums (PK_FILTER_ENUM_ARCH, PK_FILTER_ENUM_NEWEST, PK_FILTER_ENUM_INSTALLED, -1), full_paths, NULL,
+	pk_client_search_files_async (PK_CLIENT(dtask->priv->task), pk_bitfield_from_enums (PK_FILTER_ENUM_ARCH, PK_FILTER_ENUM_NEWEST, PK_FILTER_ENUM_INSTALLED, -1), full_paths, NULL,
 			             (PkProgressCallback) gpk_dbus_task_progress_cb, dtask,
 				     (GAsyncReadyCallback) gpk_dbus_task_remove_package_by_file_search_file_cb, dtask);
 
@@ -2464,7 +2464,7 @@ gpk_dbus_task_get_package_for_exec (GpkDbusTask *dtask, const gchar *exec)
 
 	/* find the package name */
 	values = g_strsplit (exec, "&", -1);
-	results = pk_client_search_file (PK_CLIENT(dtask->priv->task), pk_bitfield_value (PK_FILTER_ENUM_INSTALLED), values, NULL,
+	results = pk_client_search_files (PK_CLIENT(dtask->priv->task), pk_bitfield_value (PK_FILTER_ENUM_INSTALLED), values, NULL,
 					 (PkProgressCallback) gpk_dbus_task_progress_cb, dtask, &error);
 	if (results == NULL) {
 		egg_warning ("failed to search file: %s", error->message);
diff --git a/src/gpk-firmware.c b/src/gpk-firmware.c
index f1e2825..0aaff4b 100644
--- a/src/gpk-firmware.c
+++ b/src/gpk-firmware.c
@@ -505,7 +505,7 @@ gpk_firmware_check_available (GpkFirmware *firmware, const gchar *filename)
 	/* search for newest not installed package */
 	filter = pk_bitfield_from_enums (PK_FILTER_ENUM_NOT_INSTALLED, PK_FILTER_ENUM_NEWEST, -1);
 	values = g_strsplit (filename, "&", -1);
-	results = pk_client_search_file (PK_CLIENT(firmware->priv->task), filter, values, NULL, NULL, NULL, &error);
+	results = pk_client_search_files (PK_CLIENT(firmware->priv->task), filter, values, NULL, NULL, NULL, &error);
 	if (results == NULL) {
 		egg_warning ("failed to search file %s: %s", filename, error->message);
 		g_error_free (error);



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