From: compudj Date: Mon, 5 Sep 2005 17:00:28 +0000 (+0000) Subject: cosmetic fix event list X-Git-Tag: v0.12.20~2357 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6f43371e2ea6301dc6ca45c313749058a618e925;p=lttv.git cosmetic fix event list git-svn-id: http://ltt.polymtl.ca/svn@1132 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c index 690588f1..66105228 100644 --- a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c +++ b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c @@ -687,7 +687,7 @@ void tree_v_move_cursor_cb (GtkWidget *widget, LttvTracesetContextPosition *end_pos = (LttvTracesetContextPosition*)g_ptr_array_index( event_viewer_data->pos, - event_viewer_data->pos->len - 1); + event_viewer_data->pos->len-1); if(lttv_traceset_context_pos_pos_compare(end_pos, event_viewer_data->currently_selected_position) == 0) { /* Must get down one event and select the last one */ @@ -703,12 +703,6 @@ void tree_v_move_cursor_cb (GtkWidget *widget, path, NULL, FALSE); gtk_tree_path_free(path); } -#if 0 - GtkTreePath *path = gtk_tree_path_new_from_indices(i, -1); - gtk_tree_view_set_cursor(GTK_TREE_VIEW(event_viewer_data->tree_v), - path, NULL, FALSE); - gtk_tree_path_free(path); -#endif //0 } } else { @@ -743,7 +737,7 @@ void tree_v_move_cursor_cb (GtkWidget *widget, LttvTracesetContextPosition *end_pos = (LttvTracesetContextPosition*)g_ptr_array_index( event_viewer_data->pos, - event_viewer_data->pos->len - 1); + event_viewer_data->pos->len-1); if(lttv_traceset_context_pos_pos_compare(end_pos, event_viewer_data->currently_selected_position) == 0) { /* Must get down one page and select the last one */ @@ -1368,7 +1362,7 @@ int event_hook(void *hook_data, void *call_data) } } - if(event_viewer_data->pos->len >= event_viewer_data->num_visible_events -1 ) + if(event_viewer_data->pos->len >= event_viewer_data->num_visible_events ) return TRUE; else return FALSE;