* Methods to synchronize process list *
*****************************************************************************/
* Methods to synchronize process list *
*****************************************************************************/
{
g_ptr_array_set_size(process_list->index_to_pixmap,
g_hash_table_size(process_list->process_hash));
{
g_ptr_array_set_size(process_list->index_to_pixmap,
g_hash_table_size(process_list->process_hash));
/* Get indexes */
gint begin = floor(y/(double)cell_height);
gint end = MIN(ceil((y+height)/(double)cell_height),
/* Get indexes */
gint begin = floor(y/(double)cell_height);
gint end = MIN(ceil((y+height)/(double)cell_height),
process_list->process_hash = g_hash_table_new_full(
process_list_hash_fct, process_list_equ_fct,
destroy_hash_key, destroy_hash_data
process_list->process_hash = g_hash_table_new_full(
process_list_hash_fct, process_list_equ_fct,
destroy_hash_key, destroy_hash_data
g_assert(hashed_process_data->height != 0);
*height = hashed_process_data->height * process_list->number_of_process;
g_assert(hashed_process_data->height != 0);
*height = hashed_process_data->height * process_list->number_of_process;