[xiph-commits] r12060 - trunk/sushivision
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Tue Nov 7 12:18:21 PST 2006
Author: xiphmont
Date: 2006-11-07 12:18:20 -0800 (Tue, 07 Nov 2006)
New Revision: 12060
Modified:
trunk/sushivision/plot.c
Log:
Fix bug where Enter was no longer bounding/selecting zoom in plot widget
Modified: trunk/sushivision/plot.c
===================================================================
--- trunk/sushivision/plot.c 2006-11-07 18:44:31 UTC (rev 12059)
+++ trunk/sushivision/plot.c 2006-11-07 20:18:20 UTC (rev 12060)
@@ -520,14 +520,19 @@
p->button_down=0;
p->box_active=0;
}else{
- GdkEventButton event;
- event.x = scalespace_pixel(&p->x,p->selx);
- event.y = widget->allocation.height-
- scalespace_pixel(&p->y,p->sely);
- if(p->button_down)
+ if(p->button_down){
+ GdkEventButton event;
+ event.x = scalespace_pixel(&p->x,p->selx);
+ event.y = widget->allocation.height-
+ scalespace_pixel(&p->y,p->sely);
+
mouse_release(widget,&event);
- else
- mouse_press(widget,&event);
+ }else{
+ p->box_x2=p->box_x1 = p->selx;
+ p->box_y2=p->box_y1 = p->sely;
+ p->box_active = 1;
+ p->button_down=1;
+ }
}
return TRUE;
More information about the commits
mailing list