// 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);
}
gtk_signal_connect( GTK_OBJECT(m_clipboardWidget),
"selection_get",
GTK_SIGNAL_FUNC(selection_handler),
- GUINT_TO_POINTER( gtk_get_current_event_time() ) );
+ GUINT_TO_POINTER( gdk_event_get_time(gtk_get_current_event()) ) );
#if wxUSE_THREADS
/* disable GUI threads */