[gnome-packagekit] trivial: fix compile with new GCC's that care about enum types
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] trivial: fix compile with new GCC's that care about enum types
- Date: Tue, 20 Jul 2010 07:54:34 +0000 (UTC)
commit aac2fab4eb7e4787d4398f56b8da163f70de3644
Author: Richard Hughes <richard hughsie com>
Date: Tue Jul 20 08:51:28 2010 +0100
trivial: fix compile with new GCC's that care about enum types
src/gpk-enum.c | 4 ++--
src/gpk-update-viewer.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gpk-enum.c b/src/gpk-enum.c
index 6e8e3c4..4bbb639 100644
--- a/src/gpk-enum.c
+++ b/src/gpk-enum.c
@@ -1794,7 +1794,7 @@ gpk_message_enum_to_icon_name (PkMessageEnum message)
const gchar *
gpk_info_status_enum_to_text (GpkInfoStatusEnum info)
{
- if (info >= PK_INFO_ENUM_LAST)
+ if ((PkInfoEnum)info >= PK_INFO_ENUM_LAST)
return gpk_info_enum_to_localised_past (info - PK_INFO_ENUM_LAST);
return gpk_info_enum_to_localised_present (info);
}
@@ -1813,7 +1813,7 @@ gpk_info_status_enum_to_icon_name (GpkInfoStatusEnum info)
return "pk-package-installed";
/* use normal icon as a fallback */
- if (info >= PK_INFO_ENUM_LAST)
+ if ((PkInfoEnum)info >= PK_INFO_ENUM_LAST)
return gpk_info_enum_to_icon_name (info - PK_INFO_ENUM_LAST);
/* regular PkInfoEnum */
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index fef49de..17a5be8 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -3034,7 +3034,7 @@ gpk_update_viewer_get_distro_upgrades_best (GPtrArray *array)
"state", &state,
NULL);
- if (state == PK_UPDATE_STATE_ENUM_STABLE)
+ if (state == PK_DISTRO_UPGRADE_ENUM_STABLE)
goto out;
}
item = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]