From edcb621eadedb252842d28511c051a4621a40987 Mon Sep 17 00:00:00 2001 From: compudj Date: Sun, 8 Aug 2004 07:05:58 +0000 Subject: [PATCH] sel event in detail pos 0 fix git-svn-id: http://ltt.polymtl.ca/svn@676 04897980-b3bd-0310-b5e0-8ef037075253 --- .../lttv/modules/gui/detailedevents/events.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c index 38030ba8..074dc3bb 100644 --- a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c +++ b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c @@ -1454,13 +1454,18 @@ gboolean update_current_time(void * hook_data, void * call_data) /* Event is before the list */ } else { /* Event can be in the list */ - while(gtk_tree_model_iter_next(model, &iter)) { - gtk_tree_model_get(model, &iter, TIME_COLUMN, &time, -1); - count++; - if(time >= nsec){ - /* found */ - event_shown = TRUE; - break; + if(time >= nsec){ + /* found */ + event_shown = TRUE; + } else { + while(gtk_tree_model_iter_next(model, &iter)) { + gtk_tree_model_get(model, &iter, TIME_COLUMN, &time, -1); + count++; + if(time >= nsec){ + /* found */ + event_shown = TRUE; + break; + } } } } -- 2.34.1