[gnome-packagekit] Don't connect to media-change-required for less than PackageKit 0.4.7
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-packagekit] Don't connect to media-change-required for less than PackageKit 0.4.7
- Date: Sat, 16 May 2009 14:55:55 -0400 (EDT)
commit 00f9f21c41cadd18af5b72336c3ea6b03fe7b482
Author: Richard Hughes <richard hughsie com>
Date: Fri May 15 11:35:06 2009 +0100
Don't connect to media-change-required for less than PackageKit 0.4.7
---
src/gpk-application.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/gpk-application.c b/src/gpk-application.c
index ea349a1..4494b83 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -2894,6 +2894,7 @@ gpk_application_eula_required_cb (PkClient *client, const gchar *eula_id, const
gpk_helper_eula_show (application->priv->helper_eula, eula_id, package_id, vendor_name, license_agreement);
}
+#if PK_CHECK_VERSION(0,4,7)
/**
* gpk_application_media_change_required_cb:
**/
@@ -2903,6 +2904,7 @@ gpk_application_media_change_required_cb (PkClient *client, PkMediaTypeEnum type
/* use the helper */
gpk_helper_media_change_show (application->priv->helper_media_change, type, media_id, media_text);
}
+#endif
/**
* gpk_application_repo_signature_required_cb:
@@ -3428,8 +3430,10 @@ gpk_application_init (GpkApplication *application)
G_CALLBACK (gpk_application_repo_signature_required_cb), application);
g_signal_connect (application->priv->client_primary, "eula-required",
G_CALLBACK (gpk_application_eula_required_cb), application);
+#if PK_CHECK_VERSION(0,4,7)
g_signal_connect (application->priv->client_primary, "media-change-required",
G_CALLBACK (gpk_application_media_change_required_cb), application);
+#endif
/* this is for auth and eula callbacks */
application->priv->client_secondary = pk_client_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]