Mercurial > pidgin.yaz
changeset 19371:4fd3547dd4ab
Allow building with glib < 2.8.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 23 Aug 2007 06:14:21 +0000 |
parents | 9c03677be7c5 |
children | 382392c529cc |
files | finch/libgnt/gnt.h finch/libgnt/gnttree.c |
diffstat | 2 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/finch/libgnt/gnt.h Thu Aug 23 06:00:37 2007 +0000 +++ b/finch/libgnt/gnt.h Thu Aug 23 06:14:21 2007 +0000 @@ -37,6 +37,15 @@ #include "gntkeys.h" /** + * Get things to compile in Glib < 2.8 + */ +#if !GLIB_CHECK_VERSION(2,8,0) + #define G_PARAM_STATIC_NAME G_PARAM_PRIVATE + #define G_PARAM_STATIC_NICK G_PARAM_PRIVATE + #define G_PARAM_STATIC_BLURB G_PARAM_PRIVATE +#endif + +/** * */ void gnt_init(void);
--- a/finch/libgnt/gnttree.c Thu Aug 23 06:00:37 2007 +0000 +++ b/finch/libgnt/gnttree.c Thu Aug 23 06:14:21 2007 +0000 @@ -985,11 +985,7 @@ g_param_spec_int("columns", "Columns", "Number of columns in the tree.", 1, G_MAXINT, 1, -#if GLIB_CHECK_VERSION(2,8,0) G_PARAM_READWRITE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB -#else - G_PARAM_READWRITE|G_PARAM_PRIVATE -#endif ) );