--- multitrack.c.ori	2013-04-18 09:54:33.077295280 -0300
+++ multitrack.c	2013-04-18 10:10:04.538136785 -0300
@@ -803,7 +803,7 @@
 
 
 static void draw_block (lives_mt *mt, lives_painter_t *cairo, 
-			lives_painter_surface_t *surf, track_rect *block, int x1, int x2) {
+			lives_painter_surface_t *surf, track_rect *block, int x1, int x2, GtkWidget *eventbox) {
   // x1 is start point of drawing area (in pixels), x2 is width of drawing area (in pixels)
   lives_painter_t *cr;
 
@@ -813,8 +813,6 @@
 
   weed_timecode_t tc=get_event_timecode(event);
 
-  GtkWidget *eventbox=block->eventbox;
-
   GdkPixbuf *thumbnail=NULL;
 
   double tl_span=mt->tl_max-mt->tl_min;
@@ -1180,7 +1178,7 @@
       lives_painter_paint (cr);
  
       if (mt->block_selected!=NULL&&mt->block_selected->eventbox==eventbox) {
-	draw_block(mt,cr,NULL,mt->block_selected,-1,-1);
+	draw_block(mt,cr,NULL,mt->block_selected,-1,-1,eventbox);
       }
 
       if (is_audio_eventbox(mt,eventbox)&&mt->avol_init_event!=NULL&&mt->aparam_view_list!=NULL) 
@@ -1216,7 +1214,7 @@
     block=(track_rect *)g_object_get_data (G_OBJECT(eventbox), "blocks");
     
     while (block!=NULL) {
-      draw_block(mt,NULL,bgimage,block,startx,width);
+      draw_block(mt,NULL,bgimage,block,startx,width,eventbox);
       block=block->next;
       mt->redraw_block=TRUE; // stop drawing cursor during playback
       if (mainw->playing_file>-1&&mainw->cancelled==CANCEL_NONE) process_one(FALSE);
@@ -16565,7 +16563,7 @@
 
   if (!resize_timeline(mt)&&!did_backup) {
     lives_painter_surface_t *bgimage=(lives_painter_surface_t *)g_object_get_data (G_OBJECT(eventbox), "bgimg");
-    draw_block(mt,NULL,bgimage,block,0,lives_widget_get_allocation_width(eventbox));
+    draw_block(mt,NULL,bgimage,block,0,lives_widget_get_allocation_width(eventbox),eventbox);
     gtk_widget_queue_draw(eventbox);
   }
 
@@ -16685,7 +16683,7 @@
 
   if (!resize_timeline(mt)&&!did_backup) {
     lives_painter_surface_t *bgimage=(lives_painter_surface_t *)g_object_get_data (G_OBJECT(eventbox), "bgimg");
-    draw_block(mt,NULL,bgimage,block,0,lives_widget_get_allocation_width(eventbox));
+    draw_block(mt,NULL,bgimage,block,0,lives_widget_get_allocation_width(eventbox),eventbox);
     gtk_widget_queue_draw(eventbox);
 
     if (GPOINTER_TO_INT(g_object_get_data(G_OBJECT(eventbox),"expanded"))) {
