[gaim-migrate @ 14383]

Mon, 14 Nov 2005 14:28:46 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Mon, 14 Nov 2005 14:28:46 +0000
changeset 12086
f7441a250416
parent 12085
8f81dd6c799a
child 12087
bbb285af31fe

[gaim-migrate @ 14383]
Fix compilation for older version of gtk

src/gtkgaim.h file | annotate | diff | comparison | revisions
--- 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.
  */

mercurial