# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1381961136 0 # Node ID 11a16c117748a9bf8b417b2a1cacb9820428dd20 # Parent 0f3df50bfc4f584d62eb24fb577193d40fb78585 Fixed build problems with the last GTK3 commit; tested with a live GTK 3.10 system. Added removal support to dw_box_unpack(). Hopefully this doesn't break builds on earlier version. diff -r 0f3df50bfc4f -r 11a16c117748 gtk3/dw.c --- a/gtk3/dw.c Tue Oct 08 18:30:39 2013 +0000 +++ b/gtk3/dw.c Wed Oct 16 22:05:36 2013 +0000 @@ -2467,7 +2467,7 @@ /* Figure out where in the grid this widget is and remove that row/column */ if(boxtype == DW_VERT) { - for(z=0;z boxcount) index = boxcount; +#if !GTK_CHECK_VERSION(3,10,0) /* Fix the index by taking into account empty cells */ if(boxtype == DW_VERT) { @@ -8878,6 +8878,9 @@ { /* Get the number of items in the box... */ int boxcount = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(box), "_dw_boxcount")); +#if GTK_CHECK_VERSION(3,10,0) + int boxtype = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(box), "_dw_boxtype")); +#endif if(boxcount > 0) { @@ -8892,7 +8895,37 @@ g_object_set_data(G_OBJECT(handle2), "_dw_refed", GINT_TO_POINTER(1)); } /* Remove the widget from the box */ +#if GTK_CHECK_VERSION(3,10,0) + /* Figure out where in the grid this widget is and remove that row/column */ + if(boxtype == DW_VERT) + { + int z; + + for(z=0;z