# HG changeset patch # User Elliott Sales de Andrade # Date 1280101205 0 # Node ID 6e9c4f45595c3a235c6542c45f907214a59bc012 # Parent 065b157e2b3cf33f2199baf5c91ab13545872905 Let GtkFileSelection stuff compile for now. diff -r 065b157e2b3c -r 6e9c4f45595c pidgin/gtkutils.c --- 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) diff -r 065b157e2b3c -r 6e9c4f45595c pidgin/gtkutils.h --- 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