changeset 12086:08be85ee79c0

[gaim-migrate @ 14383] Fix compilation for older version of gtk committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 14 Nov 2005 14:28:46 +0000
parents 9b886b6e3002
children f30a6ad84aff
files src/gtkgaim.h
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkgaim.h	Mon Nov 14 09:37:00 2005 +0000
+++ b/src/gtkgaim.h	Mon Nov 14 14:28:46 2005 +0000
@@ -56,6 +56,20 @@
 /** @endcond */
 
 /*
+ * We include the sources for GtkComboBox and GtkCellView because
+ * they don't exist in older version of Gtk+, and we use them
+ * in a few places.
+ */
+#if !GTK_CHECK_VERSION(2,6,0)
+#   include "gtkcellview.h"
+#   include "gtkcellviewmenuitem.h"
+#   if !GTK_CHECK_VERSION(2,4,0)
+#       include "gtkcelllayout.h"
+#       include "gtkcombobox.h"
+#   endif /* Gtk 2.4 */
+#endif /* Gtk 2.6 */
+
+/*
  * Spacings between components, as defined by the
  * Gnome Human Interface Guidelines.
  */