/////////////////////////////////////////////////////////////////////////////
-// Name: gtk/clipbrd.cpp
+// Name: src/gtk1/clipbrd.cpp
// Purpose:
// Author: Robert Roebling
// Id: $Id$
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_CLIPBOARD
+
#include "wx/clipbrd.h"
-#if wxUSE_CLIPBOARD
+#ifndef WX_PRECOMP
+ #include "wx/log.h"
+#endif
#include "wx/dataobj.h"
#include "wx/utils.h"
-#include "wx/log.h"
#include <glib.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
-//-----------------------------------------------------------------------------
-// thread system
-//-----------------------------------------------------------------------------
-
-#if wxUSE_THREADS
-#endif
-
//-----------------------------------------------------------------------------
// data
//-----------------------------------------------------------------------------
// It shall return the time which was used to set the data.
if (selection_data->target == g_timestampAtom)
{
- uint timestamp = GPOINTER_TO_UINT (signal_data);
+ guint timestamp = GPOINTER_TO_UINT (signal_data);
gtk_selection_data_set(selection_data,
GDK_SELECTION_TYPE_INTEGER,
32,
GDK_SELECTION_TYPE_STRING,
8 * sizeof(gchar),
(unsigned char*) d,
- size-1 );
+ size );
free(d);
}
#endif
// wxUSE_CLIPBOARD
-