* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#define GTK_FILE_SYSTEM_ENABLE_UNSUPPORTED
-#include <config.h>
+#include "config.h"
#include <string.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <glib/gprintf.h>
#include <gtk/gtk.h>
#include <gtk/gtkfilesystem.h>
+#ifdef G_OS_WIN32
+#include <direct.h>
+#define rmdir(d) _rmdir(d)
+#endif
+
#define CALLBACK_TIMEOUT_MS 3000 /* Period after which the callback must have been called */
#define CANCEL_TIMEOUT_MS 100 /* We'll sleep for this much time before cancelling */
static void
wait_for_callback (TestCallbackClosure *closure)
{
- g_timeout_add (CALLBACK_TIMEOUT_MS, timeout_cb, closure);
+ gdk_threads_add_timeout (CALLBACK_TIMEOUT_MS, timeout_cb, closure);
gtk_main ();
}