changeset 1126:72a36ef67291

Allow GTK3 support to compile with GTK 3.0 but warn that full support requires 3.1.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 30 Aug 2011 07:29:30 +0000
parents 95d7eb4e85c6
children ed7cbdc37a75
files gtk3/dw.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gtk3/dw.c	Tue Aug 30 06:32:43 2011 +0000
+++ b/gtk3/dw.c	Tue Aug 30 07:29:30 2011 +0000
@@ -8111,12 +8111,18 @@
        */
       if(boxtype == DW_VERT)
       {
+#if GTK_CHECK_VERSION(3,1,0)
          gtk_grid_insert_row(GTK_GRID(box), index);
+#else
+         #warning Dynamic Windows GTK3 support requires 3.1 or higher for full support.
+#endif
          gtk_grid_attach(GTK_GRID(box), item, 0, index, 1, 1);
       }
       else
       {
+#if GTK_CHECK_VERSION(3,1,0)
          gtk_grid_insert_column(GTK_GRID(box), index);
+#endif         
          gtk_grid_attach(GTK_GRID(box), item, index, 0, 1, 1);
       }
       g_object_set_data(G_OBJECT(box), "_dw_boxcount", GINT_TO_POINTER(boxcount + 1));