Mercurial > pidgin
changeset 32619:6e9c4f45595c
Let GtkFileSelection stuff compile for now.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 25 Jul 2010 23:40:05 +0000 |
parents | 065b157e2b3c |
children | 82f26939d2ba |
files | pidgin/gtkutils.c pidgin/gtkutils.h |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkutils.c Sun Jul 25 23:39:10 2010 +0000 +++ b/pidgin/gtkutils.c Sun Jul 25 23:40:05 2010 +0000 @@ -913,6 +913,12 @@ } gboolean +#if GTK_CHECK_VERSION(2,4,0) +pidgin_check_if_dir(const char *path, gpointer filesel) +{ + return FALSE; +} +#else pidgin_check_if_dir(const char *path, GtkFileSelection *filesel) { char *dirname = NULL; @@ -929,6 +935,7 @@ return FALSE; } +#endif void pidgin_setup_gtkspell(GtkTextView *textview)
--- a/pidgin/gtkutils.h Sun Jul 25 23:39:10 2010 +0000 +++ b/pidgin/gtkutils.h Sun Jul 25 23:40:05 2010 +0000 @@ -411,7 +411,11 @@ * * @return TRUE if given path is a directory, FALSE otherwise. */ +#if GTK_CHECK_VERSION(2,4,0) +gboolean pidgin_check_if_dir(const char *path, gpointer filesel); +#else gboolean pidgin_check_if_dir(const char *path, GtkFileSelection *filesel); +#endif /** * Sets up GtkSpell for the given GtkTextView, reporting errors