Changeset 475

Show
Ignore:
Timestamp:
01/23/07 17:07:22 (5 years ago)
Author:
radekk
Message:

Marker scroll almost working ...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sweep/branches/sweep-info-panel/src/sample-display.c

    r474 r475  
    20322032    s->view->sample->tmp_sel->sel_start = new_win_start; 
    20332033 
     2034  if (s->view->sample->tmp_mark) 
     2035    s->view->sample->tmp_mark->frame = new_win_start; 
     2036 
    20342037  return (new_win_start > 0); 
    20352038} 
     
    20552058  if (s->view->sample->tmp_sel) 
    20562059    s->view->sample->tmp_sel->sel_end = s->view->end; 
     2060 
     2061  if (s->view->sample->tmp_mark) 
     2062    s->view->sample->tmp_mark->frame = s->view->end; 
    20572063 
    20582064  return (new_win_start >= (s->view->end - win_length)); 
     
    23552361 
    23562362static void 
    2357 sample_display_handle_marker_motion (SampleDisplay * s, int x, int y) 
     2363sample_display_handle_marker_motion (SampleDisplay * s, gint x, gint y) 
    23582364{ 
    23592365  sw_mark *mark; 
     
    24652471   
    24662472    } 
     2473   
     2474    if (mod) 
     2475      sample_refresh_views (s->view->sample); 
     2476 
    24672477  } 
    2468  
    2469   if (mod) 
    2470     sample_refresh_views (s->view->sample); 
    2471  
    24722478} 
    24732479 
     
    30723078          s->view->sample->tmp_mark = NULL; 
    30733079          s->view->sample->tmp_mark_inst = NULL; 
     3080           
     3081          if (s->scroll_right_tag != 0){ 
     3082            g_source_remove (s->scroll_right_tag); 
     3083            s->scroll_right_tag = 0; 
     3084          } 
     3085 
     3086          if (s->scroll_left_tag != 0){ 
     3087            g_source_remove (s->scroll_left_tag); 
     3088            s->scroll_left_tag = 0; 
     3089          } 
    30743090        } 
    30753091      break; 
     
    30773093    case TOOL_MOVE: 
    30783094      break; 
     3095 
    30793096    case TOOL_ZOOM: 
    30803097      break; 
     3098 
    30813099    default: 
    30823100      break; 
     3101 
    30833102    } 
    30843103 
     
    37083727    } 
    37093728 
     3729  sweep_load_marker_icons (); 
     3730 
    37103731} 
    37113732