X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fcontrolflow%2Fprocesslist.h;h=b2a6435a42e08e7f30c6f6d3a48857700d0c8ca9;hb=6871f7d16945d6687f474c5ae2edf1783fa5f772;hp=1e5f6e119578f9fb306cd3aca3028c05a440fd97;hpb=da049ee182a1a9b92d28a97b111ec04257600a64;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h index 1e5f6e11..b2a6435a 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h @@ -171,14 +171,20 @@ void copy_pixmap_to_screen(ProcessList *process_list, gint width, gint height); -static inline gint get_cell_height(ProcessList *process_list, - GtkTreeView *TreeView) +static inline gint get_cell_height(GtkTreeView *TreeView) { gint height; GtkTreeViewColumn *column = gtk_tree_view_get_column(TreeView, 0); gtk_tree_view_column_cell_get_size(column, NULL, NULL, NULL, NULL, &height); - + + gint vertical_separator; + gtk_widget_style_get (GTK_WIDGET (TreeView), + "vertical-separator", &vertical_separator, + NULL); + + height += vertical_separator; + return height; } @@ -220,8 +226,7 @@ static inline gint processlist_get_pixels_from_data( ProcessList *process_list, &hashed_process_data->y_iter); path_indices = gtk_tree_path_get_indices (tree_path); - *height = get_cell_height(process_list, - (GtkTreeView*)process_list->process_list_widget); + *height = get_cell_height((GtkTreeView*)process_list->process_list_widget); *y = *height * path_indices[0]; gtk_tree_path_free(tree_path);