cpw.qulogic.gtk3: 231d9237: Let GtkFileSelection stuff compile for n...

qulogic at pidgin.im qulogic at pidgin.im
Mon Jul 26 01:58:59 EDT 2010


----------------------------------------------------------------------
Revision: 231d9237a777f9d01fa2ff9c26a575a0ac8db31c
Parent:   eb56efe7802543b0a304baec5982e58bcac8ea0c
Author:   qulogic at pidgin.im
Date:     07/25/10 19:40:05
Branch:   im.pidgin.cpw.qulogic.gtk3
URL: http://d.pidgin.im/viewmtn/revision/info/231d9237a777f9d01fa2ff9c26a575a0ac8db31c

Changelog: 

Let GtkFileSelection stuff compile for now.

Changes against parent eb56efe7802543b0a304baec5982e58bcac8ea0c

  patched  pidgin/gtkutils.c
  patched  pidgin/gtkutils.h

-------------- next part --------------
============================================================
--- pidgin/gtkutils.c	b6dcc467269dfd69571545b6c2e9ae87cc134608
+++ pidgin/gtkutils.c	26b875dffb11513d6046caeef0ff4dee03b7f7e9
@@ -913,6 +913,12 @@ gboolean
 }
 
 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 @@ pidgin_check_if_dir(const char *path, Gt
 
 	return FALSE;
 }
+#endif
 
 void
 pidgin_setup_gtkspell(GtkTextView *textview)
============================================================
--- pidgin/gtkutils.h	6edab51a638a13f1838a4ec6b6adf63754993191
+++ pidgin/gtkutils.h	df0cc6537a9cefea4ae890c8e04c07c2fb766540
@@ -411,7 +411,11 @@ void pidgin_setup_screenname_autocomplet
  *
  * @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


More information about the Commits mailing list