From 898bd01205c227a76b24b3455b4bcb35d46b2b26 Mon Sep 17 00:00:00 2001 From: compudj Date: Sat, 14 Aug 2004 16:08:55 +0000 Subject: [PATCH] don't use gobject type casting in critical path git-svn-id: http://ltt.polymtl.ca/svn@743 04897980-b3bd-0310-b5e0-8ef037075253 --- .../poly/lttv/modules/gui/controlflow/processlist.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c index 51b6922b..33c497f8 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c @@ -596,7 +596,7 @@ int processlist_remove( ProcessList *process_list, guint processlist_get_height(ProcessList *process_list) { return get_cell_height(process_list, - GTK_TREE_VIEW(process_list->process_list_widget)) + (GtkTreeView*)process_list->process_list_widget) * process_list->number_of_process ; } @@ -626,12 +626,12 @@ __inline gint processlist_get_process_pixels( ProcessList *process_list, &process_info)) { tree_path = gtk_tree_model_get_path( - GTK_TREE_MODEL(process_list->list_store), + (GtkTreeModel*)process_list->list_store, &hashed_process_data->y_iter); path_indices = gtk_tree_path_get_indices (tree_path); *height = get_cell_height(process_list, - GTK_TREE_VIEW(process_list->process_list_widget)); + (GtkTreeView*)process_list->process_list_widget); *y = *height * path_indices[0]; *pm_hashed_process_data = hashed_process_data; gtk_tree_path_free(tree_path); @@ -654,12 +654,12 @@ __inline gint processlist_get_pixels_from_data( ProcessList *process_list, gint *path_indices; GtkTreePath *tree_path; - tree_path = gtk_tree_model_get_path(GTK_TREE_MODEL(process_list->list_store), + tree_path = gtk_tree_model_get_path((GtkTreeModel*)process_list->list_store, &hashed_process_data->y_iter); path_indices = gtk_tree_path_get_indices (tree_path); *height = get_cell_height(process_list, - GTK_TREE_VIEW(process_list->process_list_widget)); + (GtkTreeView*)process_list->process_list_widget); *y = *height * path_indices[0]; gtk_tree_path_free(tree_path); -- 2.34.1